To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
Start from scratch
$ gem install rails -v "~> 3.0.0"
Generate an app
$ rails new example $ cd example
Add rspec-rails to the Gemfile
$ echo 'gem "rspec-rails", :group => [:development, :test]' >> Gemfile
Install the bundle
$ bundle install
Generate a scaffold
$ rails generate scaffold Widgets name:string
This generates files in the
spec directories. The files in the
app directory are generated by Rails, and Rails delegates the generation of
the files in the
spec directory to RSpec.
$ rake db:migrate && rake db:test:prepare
$ rake spec
$ rspec spec
If all went well, you should see output ending with:
29 examples, 0 failures, 2 pending
Last published over 4 years ago by dchelimsky.
RSpec Rails settings