Skip to content

Commit

Permalink
not fail if webmock not used
Browse files Browse the repository at this point in the history
  • Loading branch information
tuwilof committed May 14, 2024
1 parent 2bebf4a commit 28f1dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fitting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def logger
end

config.after(:each) do
WebMock::CallbackRegistry.reset
WebMock::CallbackRegistry.reset if Object.const_defined?('WebMock')
end

config.after(:suite) do
Expand Down

0 comments on commit 28f1dbd

Please sign in to comment.