Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add configuration of Bundler env, default to new behavior #378

Merged
merged 1 commit into from
Jun 2, 2016

Conversation

soberstadt
Copy link
Contributor

This is designed based on @e2's suggestion in #369. Bundler deprecated with_clean_env in 1.12.x and has stopped working for me. This adds the configuration of which method to use when executing the rspec cmd. The new default with be to use with_original_env based on the deprecation notice: https://github.com/bundler/bundler/blob/v1.12.5/lib/bundler.rb#L208

I'm wondering if this should include an upgrade message for anyone bumping to this version.

@@ -297,7 +297,7 @@
let(:options) { { cmd: "rspec" } }
it "uses the default" do
expect(Guard::RSpec::RSpecProcess).to receive(:new).
with(anything, %r{/tmp/rspec_guard_result$}).and_return(process)
with(anything, %r{/tmp/rspec_guard_result$}, options).and_return(process)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [83/80]

@coveralls
Copy link

coveralls commented Jun 1, 2016

Coverage Status

Coverage increased (+0.09%) to 98.295% when pulling 07235a0 on soberstadt:fix-bundle-env into 28c3337 on guard:master.

@coveralls
Copy link

coveralls commented Jun 1, 2016

Coverage Status

Coverage increased (+0.09%) to 98.294% when pulling 4049a8f on soberstadt:fix-bundle-env into 28c3337 on guard:master.

@e2 e2 merged commit c941738 into guard:master Jun 2, 2016
@e2
Copy link
Contributor

e2 commented Jun 2, 2016

Awesome, thanks!

I'll release this soon. I doubt this will affect many users - those with problems will now not have them anymore.

@e2
Copy link
Contributor

e2 commented Jun 2, 2016

Released as v4.2.7.

@conf
Copy link

conf commented Jul 1, 2016

Thank you for this! We use bundle --standalone setup for fast specs and this issue was blocking us from guard integration. You guys are awesome! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants