I get an issue when launching rspec
Failure/Error:
expect {
post :create, params: {tag: attributes_for(:tag)}
}.to change(Tag, :count).by(1)
NameError:
undefined local variable or method `matcher_name' for #<RSpec::Matchers::BuiltIn::Change:0x000000094f7348>
Did you mean? match_unless_raises
Edit :
it only occurs when I do
rspec
instead of
bundle exec rspec