mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Improve setup of a locally failing test
This commit is contained in:
parent
157b383738
commit
f1294508d1
1 changed files with 8 additions and 0 deletions
|
@ -4,10 +4,18 @@ class NewInvoicePaymentTest < ActionDispatch::IntegrationTest
|
|||
def setup
|
||||
super
|
||||
|
||||
@original_vat_prc = Setting.registry_vat_prc
|
||||
Setting.registry_vat_prc = 0.2
|
||||
@user = users(:api_bestnames)
|
||||
login_as @user
|
||||
end
|
||||
|
||||
def teardown
|
||||
super
|
||||
|
||||
Setting.registry_vat_prc = @original_vat_prc
|
||||
end
|
||||
|
||||
def create_invoice_and_visit_its_page
|
||||
visit registrar_invoices_path
|
||||
click_link_or_button 'Add deposit'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue