Closed erikjenks closed 9 years ago
Never mind. I forgot a config block in my spec_helper
@erikjenks What did you miss specifically? I'm having the exact same issue currently.
Hey @SpacyRicochet I didnt have all of this in my spec_helper.rb file. Once I added that I think the tests passed. It was a while ago so I am trying to remember.
config.infer_spec_type_from_file_location!
config.include Request::JsonHelpers, :type => :controller
config.include Request::HeadersHelpers, :type => :controller
config.include Devise::TestHelpers, :type => :controller
config.before(:each, type: :controller) do
include_default_accept_headers
end
Hmm, after adding those lines it complains about uninitialized constant Request (NameError)
. Also, those lines don't actually exist in the commit right after that test.
Are you requiring the files from the support
directory?
In the end I fixed it as mentioned in #56. I'll check what the support
directory does, though. Thanks.
Sweet!
Receiving this error when trying to run the tests for the Users controller. I am using Rspec-rails 3.0 and shoulda-matchers 3.0. Any idea of why this is failing?