mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +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
|
||||
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