Skip to content

Commit

Permalink
Remove bundler deprecation by using the right method
Browse files Browse the repository at this point in the history
We want the environment before bundler was activated, so we can call
with_original_env.
  • Loading branch information
rafaelfranca committed Nov 25, 2021
1 parent 3e7e996 commit 4140d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/support/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def spring_client_config
def run(command, opts = {})
start_time = Time.now

Bundler.with_clean_env do
Bundler.with_original_env do
Process.spawn(
env.merge(opts[:env] || {}),
command.to_s,
Expand Down
2 changes: 1 addition & 1 deletion test/support/application_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def system(command)
end

def generate
Bundler.with_clean_env { generate_files }
Bundler.with_original_env { generate_files }
install_spring
generate_scaffold
end
Expand Down

0 comments on commit 4140d67

Please sign in to comment.