test/validator_test.rb in polish_invoicer-0.0.24 vs test/validator_test.rb in polish_invoicer-0.0.25
- old
+ new
@@ -54,10 +54,10 @@
check_ok(:price, 19.99)
end
def test_price_paid_validation
@invoice.price = 200
- check_error(:price_paid)
+ check_ok(:price_paid)
check_error(:price_paid, 'test')
check_error(:price_paid, '100')
check_error(:price_paid, -10)
check_error(:price_paid, 300)
check_ok(:price_paid, 19.99)