E. Litwin
2010-Nov-29 19:32 UTC
[rspec-users] Routes are not recognized in request specs after upgrading to 2.2
I''m getting undefined local variable or method `users_path'' (as an example) my request spec tests after upgrading to 2.2.0 from 2.1.0. I haven''t really changed these tests from the generated code but am curious as to why they are failing now. require ''spec_helper'' describe "Users" do describe "GET /users" do it "works! (now write some real specs)" do get users_path end end end I followed the upgrade steps to regenerate spec_helper.rb (it was identical), so I''m not sure what I am missing.
E. Litwin
2010-Nov-29 20:24 UTC
[rspec-users] Routes are not recognized in request specs after upgrading to 2.2
I''m getting undefined local variable or method `users_path'' (as an example) my request spec tests after upgrading to 2.2.0 from 2.1.0. I haven''t really changed these tests from the generated code but am curious as to why they are failing now. require ''spec_helper'' describe "Users" do describe "GET /users" do it "works! (now write some real specs)" do get users_path end end end I followed the upgrade steps to regenerate spec_helper.rb (it was identical), so I''m not sure what I am missing.
E. Litwin
2010-Dec-01 16:43 UTC
[rspec-users] Routes are not recognized in request specs after upgrading to 2.2
I''m getting undefined local variable or method `users_path'' (as an example) my request spec tests after upgrading to 2.2.0 from 2.1.0. I haven''t really changed these tests from the generated code but am curious as to why they are failing now. require ''spec_helper'' describe "Users" do describe "GET /users" do it "works! (now write some real specs)" do get users_path end end end I followed the upgrade steps to regenerate spec_helper.rb (it was identical), so I''m not sure what I am missing.
David Chelimsky
2010-Dec-04 02:07 UTC
[rspec-users] Routes are not recognized in request specs after upgrading to 2.2
On Nov 29, 2010, at 2:24 PM, E. Litwin wrote:> I''m getting undefined local variable or method `users_path'' (as an > example) my request spec tests after upgrading to 2.2.0 from 2.1.0.Grab the rspec-rails-2.2.1 release, which fixed a bug that I think, as a side-effect, will resolve your issue. Cheers, David> > I haven''t really changed these tests from the generated code but am > curious as to why they are failing now. > > require ''spec_helper'' > > describe "Users" do > describe "GET /users" do > it "works! (now write some real specs)" do > get users_path > end > end > end > > I followed the upgrade steps to regenerate spec_helper.rb (it was > identical), so I''m not sure what I am missing. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users