Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maas committed Mar 21, 2024
1 parent e42736f commit 263232b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

after do
# Reset Circuitbox
if Circuitbox.method_defined?(:reset)
if Circuitbox.respond_to?(:reset)
Circuitbox.reset
else
Circuitbox.configure { |config| config.default_circuit_store = Circuitbox::MemoryStore.new }
Expand Down
4 changes: 2 additions & 2 deletions test/vertex_client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

describe 'circuit' do
before do
if Circuitbox.method_defined?(:reset)
if Circuitbox.respond_to?(:reset)
Circuitbox.reset
else
Circuitbox.configure { |config| config.default_circuit_store = Circuitbox::MemoryStore.new }
Expand All @@ -54,7 +54,7 @@
end

after do
if Circuitbox.method_defined?(:reset)
if Circuitbox.respond_to?(:reset)
Circuitbox.reset
else
Circuitbox.configure { |config| config.default_circuit_store = Circuitbox::MemoryStore.new }
Expand Down

0 comments on commit 263232b

Please sign in to comment.