test/unit/validation_base_test.rb in validatable-1.3.2 vs test/unit/validation_base_test.rb in validatable-1.3.4

- old
+ new

@@ -31,9 +31,14 @@ expect 1 do validation = Validatable::ValidationBase.new :base validation.level end + expect "some message 100" do + validation = Validatable::ValidationBase.new :base, :message => lambda { "some message #{a_method}" } + validation.message(stub(:a_method=>'100')) + end + test "invalid option causes raise" do assert_raises ArgumentError do Validatable::ValidationBase.new(:base).must_understand(:foo => 1, :bar => 2) end end \ No newline at end of file