mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Cleanup setup/teardown methods
This commit is contained in:
parent
841a069ca4
commit
b578cdcfa8
7 changed files with 22 additions and 7 deletions
|
@ -21,6 +21,7 @@ class BankLinkTest < ActiveSupport::TestCase
|
|||
|
||||
def teardown
|
||||
super
|
||||
|
||||
travel_back
|
||||
end
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
require 'test_helper'
|
||||
|
||||
class EveryPayTest < ActiveSupport::TestCase
|
||||
setup do
|
||||
def setup
|
||||
super
|
||||
|
||||
@invoice = invoices(:for_payments_test)
|
||||
invoice_item = invoice_items(:one)
|
||||
|
||||
|
@ -40,7 +42,9 @@ class EveryPayTest < ActiveSupport::TestCase
|
|||
travel_to Time.at(1522542600)
|
||||
end
|
||||
|
||||
teardown do
|
||||
def teardown
|
||||
super
|
||||
|
||||
travel_back
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue