adapt tests for manually generating group order invoices for order
This commit is contained in:
parent
5a817a9acb
commit
3149e00e11
2 changed files with 16 additions and 3 deletions
|
|
@ -9,9 +9,8 @@ describe GroupOrderInvoice do
|
|||
|
||||
describe 'erroneous group order invoice' do
|
||||
let(:goi) { create :group_order_invoice, group_order_id: group_order.id }
|
||||
|
||||
it 'does not create group order invoice if tax_number not set' do
|
||||
expect { goi }.to raise_error(ActiveRecord::RecordInvalid)
|
||||
expect { goi }.to raise_error(ActiveRecord::RecordInvalid, /.*/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue