Skip to content

Commit

Permalink
Reverting #324. Fixes #386. Closes #388
Browse files Browse the repository at this point in the history
  • Loading branch information
os97673 authored and mattwynne committed Mar 10, 2013
1 parent 70d05cd commit dd15ec0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
3 changes: 1 addition & 2 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
## [Git master](https://github.com/cucumber/cucumber/compare/v1.2.2...master)

### New Features

### Bugfixes
* Fix problem with rake task for jruby and ruby installed from packages on Ubuntu ([#386](https://github.com/cucumber/cucumber/issues/386), [#388](https://github.com/cucumber/cucumber/issues/388) y-higuchi)
* Fix embedding images in json ([#315](https://github.com/cucumber/cucumber/issues/315) Oleg Sukhodolsky)

## [1.2.2](https://github.com/cucumber/cucumber/compare/v1.2.1...v1.2.2)
Expand Down
3 changes: 1 addition & 2 deletions lib/cucumber/rake/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def gem_available_new_rubygems?(gemname)

def cmd
if use_bundler
bundle_cmd = Gem.default_exec_format % 'bundle'
[ Cucumber::RUBY_BINARY, '-S', bundle_cmd, 'exec', 'cucumber', @cucumber_opts,
[ Cucumber::RUBY_BINARY, '-S', 'bundle', 'exec', 'cucumber', @cucumber_opts,
@feature_files ].flatten
else
[ Cucumber::RUBY_BINARY, '-I', load_path(@libs), quoted_binary(@cucumber_bin),
Expand Down
15 changes: 1 addition & 14 deletions spec/cucumber/rake/forked_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,9 @@ module Rake
end

it "uses bundle exec to find cucumber and libraries" do
bundle_cmd = Gem.default_exec_format % 'bundle'

subject.cmd.should == [Cucumber::RUBY_BINARY,
'-S',
bundle_cmd,
'exec',
'cucumber',
'--cuke-option'] + feature_files
end

it "obeys program suffix for bundler" do
Gem::ConfigMap.stub(:[]).with(:ruby_install_name).and_return('XrubyY')

subject.cmd.should == [Cucumber::RUBY_BINARY,
'-S',
'XbundleY',
'bundle',
'exec',
'cucumber',
'--cuke-option'] + feature_files
Expand Down

0 comments on commit dd15ec0

Please sign in to comment.