Permalink
Browse files

Adding test case to prove 1c873e0

  • Loading branch information...
1 parent 1c873e0 commit ca278c4762ec5de8e95713a313522abbdf67345a @augustl committed Sep 25, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/jquery_validations_test.rb
@@ -64,6 +64,11 @@ def test_validates_length_of_minimum
assert_expected_json :title => {"minlength" => 20}
end
+ def test_validates_length_of_is
+ Post.validates_length_of :title, :is => 20
+ assert_expected_json :title => {"lengthIs20" => true}
+ end
+
def test_inclusion_as_array
Post.validates_inclusion_of :title, :in => %w(foo bar)
assert_custom_validator :title

0 comments on commit ca278c4

Please sign in to comment.