test/unit/validatable_test.rb in validatable-1.2.1 vs test/unit/validatable_test.rb in validatable-1.2.2
- old
+ new
@@ -19,10 +19,10 @@
klass.send(:validations) << stub(:valid? => false, :should_validate? => true, :attribute => 'attribute2', :message => 'message2', :level => 1)
instance=mock
instance.expects(:errors).returns(errors=mock).times 3
errors.expects(:add).with('attribute', 'message')
errors.expects(:add).with('attribute2', 'message2')
- errors.expects(:empty?).returns true
+ errors.expects(:any?).returns false
klass.validate(instance)
end
expect true do
klass = Class.new do
\ No newline at end of file