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

@ -47,7 +47,5 @@ class AuthTokenCreatorTest < ActiveSupport::TestCase
token_creator_with_defaults = AuthTokenCreator.create_with_defaults(@user)
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)
travel_back
end
end

View file

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

View file

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