updated tests

This commit is contained in:
olegphenomenon 2022-03-04 12:45:27 +02:00
parent a9ea8e92a1
commit 03101a599f
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,17 @@
require 'test_helper'
class EInvoiceResponseTest < ApplicationIntegrationTest
setup do
sign_in users(:api_bestnames)
@invoice = invoices(:one)
Spy.on_instance_method(EisBilling::BaseController, :authorized).and_return(true)
end
def test_invoice_should_be_mark_as_sent
assert_nil @invoice.e_invoice_sent_at
put eis_billing_e_invoice_response_path, params: { invoice_number: @invoice.number}
@invoice.reload
assert_not_nil @invoice.e_invoice_sent_at
end
end