1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Fix test that was written poorly

This commit is contained in:
Elliot Winkler 2015-01-22 18:46:35 -07:00
parent de111ea5e8
commit 84a366fbc5

View file

@ -18,11 +18,11 @@ describe Shoulda::Matchers::ActiveModel::ValidateNumericalityOfMatcher, type: :m
it 'rejects with the ActiveRecord :not_a_number message' do
the_matcher = matcher
the_matcher.matches?(define_model(:example, attr: :string).new)
expect(the_matcher.failure_message_when_negated)
.to include 'Did not expect errors to include "is not a number"'
expect do
expect(not_validating_numericality).to the_matcher
end.to fail_with_message_including(
'Expected errors to include "is not a number"'
)
end
it 'rejects with the ActiveRecord :not_an_integer message' do