Skip to content

Commit

Permalink
use mock_require_method
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Evanczuk committed Oct 31, 2022
1 parent 7567d81 commit 5a334c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ class ConfigurationTest < Minitest::Test
use_template(:skeleton)

required_things = []
require_method = ->(required_thing) do
mock_require_method = ->(required_thing) do
required_things << required_thing
end
ExtensionLoader.stub(:require, require_method) do
ExtensionLoader.stub(:require, mock_require_method) do
Configuration.from_path
end

Expand Down

0 comments on commit 5a334c8

Please sign in to comment.