Rspec-rails Installing dependent libraries
> VI gemfile:
Gem ' Rspec-rails '
The wording of the specification:
Group:d evelopment,: Test do
...
Gem ' rspec-rails ' ...
End
> bundler Install:
Using Rspec-support 3.5.0
using Rspec-core 3.5.1 using rspec-expectations 3.5.0
using Rspec-mocks 3.5.0
Using rspec-rails 3.5.1
> Rails generate Rspec:install:
Create . RSpec
Create spec
Create spec/spec_helper.rb
Create Spec/rails_ Helper.rb
Generate the RSpec folder. > Rake Spec:
/users/doctorq/.rvm/rubies/ruby-2.3.0/bin/ruby-i/users/doctorq/.rvm/gems/ruby-2.3.0@global/gems/ rspec-core-3.5.1/lib:/users/doctorq/.rvm/gems/ruby-2.3.0@global/gems/rspec-support-3.5.0/lib/users/doctorq/. Rvm/gems/ruby-2.3.0@global/gems/rspec-core-3.5.1/exe/rspec--pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
No Examples found.
Finished in 0.00038 seconds (Files took 0.11575 seconds to load)
0 examples, 0 failures
Execute the use case. Writing Use Cases
> Rails Generate Rspec:model article
Create SPEC/MODELS/ARTICLE_SPEC.RB
A use case file was created