Sha256: 2c38ce13932505ccab075d1e1fc516bfe7873ecc5a5ca5e3e7e60528ecff2db4
Contents?: true
Size: 765 Bytes
Versions: 4
Compression:
Stored size: 765 Bytes
Contents
Install Rails-3 $ 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 `app` and `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. ### Run migrations $ rake db:migrate && rake db:test:prepare ### Run RSpec $ rake spec or $ rspec spec If all went well, you should see output ending with: 29 examples, 0 failures, 2 pending
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rspec-rails-2.6.0.rc2 | features/GettingStarted.md |
rspec-rails-2.5.0 | features/GettingStarted.md |
rspec-rails-2.4.1 | features/GettingStarted.md |
rspec-rails-2.4.0 | features/GettingStarted.md |