mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Convert specs to tests
This commit is contained in:
parent
8c4e6f1656
commit
0faed5d773
1 changed files with 6 additions and 0 deletions
|
@ -154,4 +154,10 @@ class InvoiceTest < ActiveSupport::TestCase
|
|||
|
||||
assert_equal 1, iteration_count
|
||||
end
|
||||
|
||||
def test_returns_combined_seller_address
|
||||
invoice = Invoice.new(seller_street: 'street', seller_city: 'city', seller_state: 'state',
|
||||
seller_zip: nil)
|
||||
assert_equal 'street, city, state', invoice.seller_address
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue