Skip to content

Commit

Permalink
Ignore bundle pkgs settings from expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Sep 16, 2024
1 parent 6dcf24a commit df7fc62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/setup_bundler_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ def run_script(path = Dir.pwd, expected_path: nil, **options)

def stub_bundle_with_env(env, command = "(bundle check || bundle install) 1>&2")
Object.any_instance.expects(:system).with do |actual_env, actual_command|
actual_env.delete_if { |k, _v| k.start_with?("BUNDLE_PKGS") }
actual_env.all? { |k, v| env[k] == v } && actual_command == command
end.returns(true)
end
Expand Down

0 comments on commit df7fc62

Please sign in to comment.