Commit Graph

8 Commits

Author SHA1 Message Date
Alan Heywood d92d548d42 Allow the use of %{attribute} or %{model} in i18n translations.
Fix a bug where shoulda was raising an exception, when a translation
in en.yml was modified to include %{attribute} or %{model}
2013-04-12 17:10:18 -04:00
Jesse Toth 777f42d5e1 Fix ensure_length_of matcher to work for is_equal_to cases when the attribute has other validations on it.
Now that the upper bound matchers are not being skipped for the is_equal_to case, the expected error message needs to be set for the upper bound.
2012-09-21 14:07:25 -04:00
Gabe Berke-Williams 782f70aa3d ensure_length_of only works with string/text columns. 2012-06-04 11:56:47 -04:00
Gabe Berke-Williams 18f668051e Extract method and clear up what's happening. 2012-05-11 10:28:38 -04:00
Gabe Berke-Williams 9f49e7d1c3 Continue adding options hash 2012-04-24 16:33:47 -05:00
Aaron Gibralter 0a8e6522cf Use all possible i18n error messages for ensure_length_of_matcher. 2012-04-20 14:53:11 -04:00
Gabe Berke-Williams 4b2b57b3fb Style. 2012-04-03 20:20:50 -04:00
Markus Schwed 2a54fdb28d Seperate ActiveRecord and ActiveModel related matchers 2011-05-06 15:56:36 +02:00