[rspec-users] bug: rspec rails generator generates a failing spec

Alex Chaffee alexch at gmail.com
Thu Mar 22 21:19:04 UTC 2012

Using rspec 2.9.0, rspec-rails 2.9.0, rails 3.2.2, following Michael 
Hartl's RailsTutorial, version 3.2, chapter 3.

  rails generate integration_test static_pages
makes a spec named static_pages_spec.rb that contains the following code
  get static_pages_index_path
which causes this error when run
  1) StaticPages GET /static_pages works! (now write some real specs)
     Failure/Error: get static_pages_index_path
       undefined local variable or method `static_pages_index_path' for 
     # ./spec/requests/static_pages_spec.rb:7:in `block (3 levels) in <top 

Also, I couldn't figure out where or how to report rspec bugs; sorry for 
mailing the list if this isn't the right place to do it.

 - A

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120322/6f6370fd/attachment.html>

More information about the rspec-users mailing list