mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
updated tests
This commit is contained in:
parent
94302aaec9
commit
443643d937
2 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@ class AdminAreaInvoicesTest < ApplicationSystemTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cancels_an_invoice
|
def test_cancels_an_invoice
|
||||||
|
Spy.on(EisBilling::SendInvoiceStatus, :send_info).and_return(true)
|
||||||
@invoice.account_activity = nil
|
@invoice.account_activity = nil
|
||||||
assert @invoice.cancellable?
|
assert @invoice.cancellable?
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,8 @@ class RegistrarAreaInvoicesTest < ApplicationSystemTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cancels_an_invoice
|
def test_cancels_an_invoice
|
||||||
|
Spy.on(EisBilling::SendInvoiceStatus, :send_info).and_return(true)
|
||||||
|
|
||||||
@invoice.account_activity = nil
|
@invoice.account_activity = nil
|
||||||
assert @invoice.cancellable?
|
assert @invoice.cancellable?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue