test/macros/validates_length_test.rb in whyvalidationssuckin96-1.6.1 vs test/macros/validates_length_test.rb in whyvalidationssuckin96-1.6.2

- old
+ new

@@ -1,10 +1,10 @@ require 'teststrap' context "validates length" do should "add a validation macro" do - WhyValidationsSuckIn96::ValidationBuilder.instance_methods + WhyValidationsSuckIn96::ValidationBuilder.instance_methods.map {|im| im.to_s} end.includes('validates_length_of') should "raise if an no options are given" do WhyValidationsSuckIn96::ValidatesLength.new(Object.new, :attribute => :text) end.raises(ArgumentError, "Length options must be given as :minimum, :maximum, :is, or :in") \ No newline at end of file