thoughtbot--shoulda-matchers/spec/unit/shoulda/matchers
Elliot Winkler e708789714 Fix failure message for numericality matcher
Secondary author: Mauro George <maurogot@gmail.com>

Sometimes the failure message did not always provide the reason for
failure. For instance, given this validation:

    validates :ano, numericality: { only_integer: true, greater_than_or_equal_to: 1900 }

this test:

    it { should validate_numericality_of(:ano).is_greater_than_or_equal_to(1900) }

would fail with the following:

    Did not expect errors  when ano is set to 1900.000000000001, got error:

as you can see, the failure message doesn't contain the validation
error.

In the process of making this fix, we changed how the matcher fails so
that it will so when the first submatcher fails, not the last. This
changes what the failure message looks like, but not the basic
functionality of the matcher itself.
2015-06-01 01:38:35 -06:00
..
action_controller The route matcher accepts a format as a symbol 2015-04-02 08:02:19 -06:00
active_model Fix failure message for numericality matcher 2015-06-01 01:38:35 -06:00
active_record Fail when no scopes on uniq matcher but scopes on validation 2015-05-22 14:37:19 -06:00
doublespeak Doublespeak: Proxies store return value in MethodCall 2015-03-01 00:39:51 -07:00
independent Add with_prefix to delegate_method 2014-12-15 22:38:27 -07:00
doublespeak_spec.rb Make Doublespeak specs runnable without Rails 2015-02-28 23:41:28 -07:00