summaryrefslogtreecommitdiff
path: root/spec/commands/binstubs_spec.rb
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-12-28 01:47:16 +0000
committerColby Swandale <hello@colby.fyi>2018-07-10 22:56:43 +1000
commit38e66d37f83b412aed9d4856a7a2e2b1d75de704 (patch)
treeb7bbdcea77e8cbccfdd4bfee828408551837a646 /spec/commands/binstubs_spec.rb
parent9f7bf0ac3ab8d995e3a274cec3c292a5203f4534 (diff)
downloadbundler-38e66d37f83b412aed9d4856a7a2e2b1d75de704.tar.gz
Auto merge of #6232 - bundler:fix-ruby25-failing, r=hsbt
Fix failing examples with Ruby 2.5 Followed up https://github.com/bundler/bundler/pull/6226 (cherry picked from commit dba5ba731e420b961723507899a94ac3987f431b)
Diffstat (limited to 'spec/commands/binstubs_spec.rb')
-rw-r--r--spec/commands/binstubs_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb
index ba50699ab1..f6a353cb4d 100644
--- a/spec/commands/binstubs_spec.rb
+++ b/spec/commands/binstubs_spec.rb
@@ -86,7 +86,8 @@ RSpec.describe "bundle binstubs <gem>" do
build_repo2 do
build_gem "prints_loaded_gems", "1.0" do |s|
s.executables = "print_loaded_gems"
- s.write "bin/print_loaded_gems", <<-R
+ s.bindir = "exe"
+ s.write "exe/print_loaded_gems", <<-R
specs = Gem.loaded_specs.values.reject {|s| Bundler.rubygems.spec_default_gem?(s) }
puts specs.map(&:full_name).sort.inspect
R