Rspec not running properly

Hello everybody,

Being a new user of RoR, i’m experiencing a problem using Rspec, it
should end without errors but I still get this result:

PS C:\RubyTools\rubygems-2.2.2\rails_projects\sample_app> rspec spec
Called from:
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/actionpack-3.2.0/lib/action_dispatch/middleware/session/abstract_store.rb:28:in
`initialize’.
Rack::File headers parameter replaces cache_control after Rack 1.5.
FFFFFFFFF
Failures:

  1. PagesController GET ‘about’ returns http success
    Failure/Error: get ‘about’
    NoMethodError:
    undefined method `get’ for
    #RSpec::ExampleGroups::PagesController_2::GETAbout:0x69b85d8

    ./spec/controllers/pages_controller_spec.rb:39:in `block (3

levels) in <top (required)>’
2) PagesController GET ‘about’ should have the right title
Failure/Error: get ‘about’
NoMethodError:
undefined method get' for #<RSpec::ExampleGroups::PagesController_2::GETAbout:0x69dbb88> # ./spec/controllers/pages_controller_spec.rb:43:inblock (3
levels) in <top (required)>’

Finished in 0 seconds
9 examples, 9 failures

Failed examples:

rspec ./spec/controllers/pages_controller_spec.rb:38 # PagesController
GET ‘about’ returns http success
rspec ./spec/controllers/pages_controller_spec.rb:42 # PagesController
GET ‘about’ should have the right
rspec ./spec/controllers/pages_controller_spec.rb:10 # PagesController
GET ‘home’ returns http success

Would you have an idea of where it comes from please?
Thanks a lot for your help!

it seems your tests are failing, could you link a gist with the tests?

2014-04-04 5:35 GMT+02:00 Kamal B. [email protected]:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs