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

- old
+ new

@@ -1,10 +1,10 @@ require 'teststrap' context "validates exclusion" do should "add a validation macro" do - WhyValidationsSuckIn96::ValidationBuilder.instance_methods + WhyValidationsSuckIn96::ValidationBuilder.instance_methods.map {|im| im.to_s} end.includes('validates_exclusion_of') should "raise if an :in option is not given" do WhyValidationsSuckIn96::ValidatesExclusion.new(Object.new, :attribute => :colour) end.raises(ArgumentError, "Collection to check for exclusion against should be specified with :in") \ No newline at end of file