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