Alex Chaffee
2012-Mar-22 21:19 UTC
[rspec-users] bug: rspec rails generator generates a failing spec
Using rspec 2.9.0, rspec-rails 2.9.0, rails 3.2.2, following Michael Hartl''s RailsTutorial, version 3.2, chapter 3. Running 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 NameError: undefined local variable or method `static_pages_index_path'' for #<RSpec::Core::ExampleGroup::Nested_3::Nested_1:0x007fdc8f22a560> # ./spec/requests/static_pages_spec.rb:7:in `block (3 levels) in <top (required)>'' 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>
Alex Chaffee
2012-Mar-22 21:24 UTC
[rspec-users] bug: rspec rails generator generates a failing spec
Oops. This is apparently not an rspec bug after all... the tutorial instructions generated the StaticPages controller in a non-standard way. Sorry for the false alarm! On Thursday, March 22, 2012 2:19:04 PM UTC-7, Alex Chaffee wrote:> > Using rspec 2.9.0, rspec-rails 2.9.0, rails 3.2.2, following Michael > Hartl''s RailsTutorial, version 3.2, chapter 3. > > Running > 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 > NameError: > undefined local variable or method `static_pages_index_path'' for > #<RSpec::Core::ExampleGroup::?Nested_3::Nested_1:?0x007fdc8f22a560> > # ./spec/requests/static_pages_?spec.rb:7:in `block (3 levels) in > <top (required)>'' > > 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/32690d48/attachment.html>
survivorist
2012-May-19 17:46 UTC
[rspec-users] bug: rspec rails generator generates a failing spec
What was the specific issue with this and how did you resolve it, I''m having the exact same error and can''t find the root of the issue? Thanks -- View this message in context: http://ruby.11.n6.nabble.com/bug-rspec-rails-generator-generates-a-failing-spec-tp4647101p4975461.html Sent from the rspec-users mailing list archive at Nabble.com.
Justin Ko
2012-May-19 20:09 UTC
[rspec-users] bug: rspec rails generator generates a failing spec
On May 19, 2012, at 11:46 AM, survivorist wrote:> What was the specific issue with this and how did you resolve it, I''m having > the exact same error and can''t find the root of the issue? Thanks > > -- > View this message in context: http://ruby.11.n6.nabble.com/bug-rspec-rails-generator-generates-a-failing-spec-tp4647101p4975461.html > Sent from the rspec-users mailing list archive at Nabble.com. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-usersI believe this is fixed in RSpec 2.10