test/unit/validation_base_test.rb in validatable-1.2.1 vs test/unit/validation_base_test.rb in validatable-1.2.2

- old
+ new

@@ -30,6 +30,17 @@ expect 1 do validation = Validatable::ValidationBase.new :base validation.level end + + test "invalid option causes raise" do + assert_raises ArgumentError do + Validatable::ValidationBase.must_understand(:foo => 1, :bar => 2) + end + end + + expect true do + Validatable::ValidationBase.must_understand(:message => nil, :if => nil, :times => nil, :level => nil, :groups => nil) + end + end \ No newline at end of file