mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
9 lines
227 B
Ruby
9 lines
227 B
Ruby
require 'test_helper'
|
|
|
|
class InvoiceTest < ActiveSupport::TestCase
|
|
def test_invalid_without_vat_rate
|
|
invoice = Invoice.new(vat_rate: nil)
|
|
invoice.validate
|
|
assert invoice.errors.added?(:vat_rate, :blank)
|
|
end
|
|
end
|