Remove unnecessary teardown step

This commit is contained in:
Artur Beljajev 2019-09-03 18:25:18 +03:00
parent b622f5f040
commit 771f9b20a9
7 changed files with 0 additions and 19 deletions

View file

@ -49,6 +49,5 @@ class EppDomainUpdateTest < ApplicationIntegrationTest
post '/epp/command/update', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames' post '/epp/command/update', { frame: request_xml }, 'HTTP_COOKIE' => 'session=api_bestnames'
assert_equal '2105', Nokogiri::XML(response.body).at_css('result')[:code] assert_equal '2105', Nokogiri::XML(response.body).at_css('result')[:code]
travel_back
end end
end end

View file

@ -88,7 +88,6 @@ class EppDomainTransferRequestTest < ApplicationIntegrationTest
assert_equal registrars(:bestnames), @domain.registrar assert_equal registrars(:bestnames), @domain.registrar
assert_equal '2105', Nokogiri::XML(response.body).at_css('result')[:code] assert_equal '2105', Nokogiri::XML(response.body).at_css('result')[:code]
travel_back
end end
def test_same_registrar def test_same_registrar

View file

@ -47,7 +47,5 @@ class AuthTokenCreatorTest < ActiveSupport::TestCase
token_creator_with_defaults = AuthTokenCreator.create_with_defaults(@user) token_creator_with_defaults = AuthTokenCreator.create_with_defaults(@user)
assert_equal(Rails.application.config.secret_key_base, token_creator_with_defaults.key) assert_equal(Rails.application.config.secret_key_base, token_creator_with_defaults.key)
assert_equal('2010-07-05 02:30:00 UTC', token_creator_with_defaults.expires_at) assert_equal('2010-07-05 02:30:00 UTC', token_creator_with_defaults.expires_at)
travel_back
end end
end end

View file

@ -18,12 +18,6 @@ class AuthTokenDecryptorTest < ActiveSupport::TestCase
@access_token = "q27NWIsKD5snWj9vZzJ0RcOYvgocEyu7H9yCaDjfmGi54sogovpBeALMPWTZHMcdFQzSiq6b4cI0p5tO0_5UEOHic2jRzNW7mkhi-bn-Y2Wlnw7jhMpxw6VwJR8QEoDzjkcNxnKBN6OKF4nssa60ZQ==" @access_token = "q27NWIsKD5snWj9vZzJ0RcOYvgocEyu7H9yCaDjfmGi54sogovpBeALMPWTZHMcdFQzSiq6b4cI0p5tO0_5UEOHic2jRzNW7mkhi-bn-Y2Wlnw7jhMpxw6VwJR8QEoDzjkcNxnKBN6OKF4nssa60ZQ=="
end end
def teardown
super
travel_back
end
def test_decrypt_token_returns_a_hash_when_token_is_valid def test_decrypt_token_returns_a_hash_when_token_is_valid
decryptor = AuthTokenDecryptor.new(@access_token, @key) decryptor = AuthTokenDecryptor.new(@access_token, @key)

View file

@ -21,7 +21,6 @@ class SerializersRegistrantApiDomainTest < ActiveSupport::TestCase
new_json = serializer_for_locked_domain.to_json new_json = serializer_for_locked_domain.to_json
assert_equal(Time.zone.parse('2010-07-05 10:30'), new_json[:locked_by_registrant_at]) assert_equal(Time.zone.parse('2010-07-05 10:30'), new_json[:locked_by_registrant_at])
travel_back
end end
def test_returns_registrar_name def test_returns_registrar_name

View file

@ -10,10 +10,6 @@ class AdminAreaRegistryLockTest < JavaScriptApplicationSystemTestCase
@domain = domains(:airport) @domain = domains(:airport)
end end
def teardown
travel_back
end
def test_does_not_have_link_when_domain_is_not_locked def test_does_not_have_link_when_domain_is_not_locked
visit edit_admin_domain_path(@domain) visit edit_admin_domain_path(@domain)
click_link_or_button('Actions') click_link_or_button('Actions')

View file

@ -7,10 +7,6 @@ class AdminDomainsTestTest < ApplicationSystemTestCase
@domain = domains(:shop) @domain = domains(:shop)
end end
teardown do
travel_back
end
def test_shows_details def test_shows_details
visit admin_domain_path(@domain) visit admin_domain_path(@domain)
assert_field nil, with: @domain.transfer_code assert_field nil, with: @domain.transfer_code