Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add failing spec for global options breaking exec

  • Loading branch information...
commit 9bb81b25b9dca17e4a21b2e5f545ca18b6fada2e 1 parent c52eaed
@indirect indirect authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/other/exec_spec.rb
View
6 spec/other/exec_spec.rb
@@ -39,6 +39,12 @@
out.should == "exec"
end
+ it "works when exec'ing with an option bundler has" do
+ install_gemfile 'gem "rack"'
+ bundle "exec echo --no-color foo"
+ out.should == "--no-color foo"
+ end
+
it "handles different versions in different bundles" do
build_repo2 do
build_gem "rack_two", "1.0.0" do |s|

2 comments on commit 9bb81b2

@indirect
Owner

@sferik, turns out that Thor 0.15 isn't compatible with class options and bundle exec. Yehuda thinks we need a way to exclude certain actions from class options, like class_option "no-color", :except => :exec. Thoughts?

@sferik
Collaborator

I'd be fine with :except and :only options.

Please sign in to comment.
Something went wrong with that request. Please try again.