mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Clean up settings after tests
This commit is contained in:
parent
840f1db5c9
commit
7fcab05e51
15 changed files with 74 additions and 22 deletions
|
@ -3,6 +3,11 @@ require 'test_helper'
|
|||
class OverdueInvoiceCancellerTest < ActiveSupport::TestCase
|
||||
setup do
|
||||
@invoice = invoices(:one)
|
||||
@original_days_to_keep_overdue_invoices_active = Setting.days_to_keep_overdue_invoices_active
|
||||
end
|
||||
|
||||
teardown do
|
||||
Setting.days_to_keep_overdue_invoices_active = @original_days_to_keep_overdue_invoices_active
|
||||
end
|
||||
|
||||
def test_default_delay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue