Skip to content

Commit

Permalink
Fix deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalumickas committed Mar 2, 2020
1 parent 25420a3 commit 2034366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/zapata/rzpec/runner.rb
Expand Up @@ -50,7 +50,7 @@ def expected(method_name)
def run
@ran = true

@stdin, @stdout, @stderr = Bundler.with_clean_env do
@stdin, @stdout, @stderr = Bundler.with_unbundled_env do
Open3.popen3("bundle exec rspec #{@spec_filename} --format j")
end
end
Expand Down
5 changes: 3 additions & 2 deletions spec/spec_helper.rb
@@ -1,4 +1,5 @@
require 'coveralls'

Coveralls.wear!

require 'zapata'
Expand All @@ -16,7 +17,7 @@
RAILS_TEST_APP_DIR = "#{Dir.pwd}/spec/support/rails_test_app".freeze

def execution_output(command)
stdout = Bundler.with_clean_env do
stdout = Bundler.with_unbundled_env do
Open3.pipeline_r(
command
)
Expand All @@ -37,7 +38,7 @@ def expected(code)
end

def exec_generation(generate_for)
_, stdout, stderr = Bundler.with_clean_env do
_, stdout, stderr = Bundler.with_unbundled_env do
Open3.popen3(
"cd #{RAILS_TEST_APP_DIR} && bundle exec zapata generate #{generate_for} -s"
)
Expand Down

0 comments on commit 2034366

Please sign in to comment.