[rspec-users] Routes are not recognized in request specs after upgrading to 2.2

E. Litwin elitwin at rocketmail.com
Mon Nov 29 15:24:07 EST 2010


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.


More information about the rspec-users mailing list