Skip to content

Commit

Permalink
test: reset caches before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbayne committed Oct 16, 2024
1 parent 7ad2098 commit ec38120
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/valid_email2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ class TestUserMultiple < TestModel

let(:disposable_domain) { ValidEmail2.disposable_emails.first }

before do
ValidEmail2::Address.class_variable_set(:@@mx_servers_cache, {})
ValidEmail2::Address.class_variable_set(:@@mx_or_a_servers_cache, {})
end

describe "basic validation" do
subject(:user) { TestUser.new(email: "") }

Expand Down

0 comments on commit ec38120

Please sign in to comment.