Closed SpacyRicochet closed 8 years ago
I seem to have fixed it by adding the following to spec_helper.rb
as suggested in this comment.
Shoulda::Matchers.configure do |config|
config.integrate do |with|
# Choose a test framework:
with.test_framework :rspec
with.library :rails
end
end
Additionally, I had to change the validate_uniqueness_of
test to be case insensitive;
it { should validate_uniqueness_of(:email).case_insensitive }
All passes now.
Right before listing 3.2.1, the following line in
users_controller_spec.rb
gives aNoMethodError
.https://github.com/kurenn/market_place_api/commit/59daf641120b75fa79dd064a07d80fdc31d3bc1e#commitcomment-15067079
Some searching on the internet suggests this is because the spec doesn't handle the route as an API which does implement
respond_with
. However, I'm at a loss why this currently is the case.This issue suggested that the configuration might be off, but following that suggestion pops up other errors.
Any ideas why that spec line fails?