diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-06-25 21:46:50 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-06-25 21:48:41 -0300 |
commit | 61346d1b42527d072c0b4bd97f3b5ce3f6be214c (patch) | |
tree | 5e3ed3a00752aa4e8a0c5b6cc3d04c078d01ba69 /activemodel/test/cases | |
parent | a1fedfa839d0cd8b40c61b1a00bd0ac848a838af (diff) | |
parent | 0317b93c17a46d7663a8c36edc26ad0ba3d75f85 (diff) | |
download | rails-61346d1b42527d072c0b4bd97f3b5ce3f6be214c.tar.gz rails-61346d1b42527d072c0b4bd97f3b5ce3f6be214c.tar.bz2 rails-61346d1b42527d072c0b4bd97f3b5ce3f6be214c.zip |
Merge pull request #10774 from chuckbergeron/validates-inclusion-of-accuracy-for-non-numeric-ranges
Greater accuracy for validates_inclusion_of on non-numeric ranges
Closes #10774, fixes #10593
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r-- | activemodel/test/cases/validations/inclusion_validation_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/test/cases/validations/inclusion_validation_test.rb b/activemodel/test/cases/validations/inclusion_validation_test.rb index ceec9dc256..01a373d85d 100644 --- a/activemodel/test/cases/validations/inclusion_validation_test.rb +++ b/activemodel/test/cases/validations/inclusion_validation_test.rb @@ -14,6 +14,7 @@ class InclusionValidationTest < ActiveModel::TestCase Topic.validates_inclusion_of(:title, in: 'aaa'..'bbb') assert Topic.new("title" => "bbc", "content" => "abc").invalid? assert Topic.new("title" => "aa", "content" => "abc").invalid? + assert Topic.new("title" => "aaab", "content" => "abc").invalid? assert Topic.new("title" => "aaa", "content" => "abc").valid? assert Topic.new("title" => "abc", "content" => "abc").valid? assert Topic.new("title" => "bbb", "content" => "abc").valid? |