Ruby on Rails Friday, April 4, 2014

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


2014-04-04 5:35 GMT+02:00 Kamal Bender <lists@ruby-forum.com>:
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:in `block (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!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7f0e8680e507ced3437590cec6bfa3b5%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAK4fz2qS9f%2BBWGk09555jud4C4b9c%2Bd-iQr1E12Um-o%3DwJ9ZRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment