mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
parent
f86ab085ac
commit
7dee10c683
13 changed files with 29 additions and 13 deletions
9
test/models/invoice_test.rb
Normal file
9
test/models/invoice_test.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue