diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-07-21 09:37:18 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-07-21 09:37:18 -0500 |
commit | ad7fbf26c995440f7bf3b295cbd68be3855f394a (patch) | |
tree | 92f72afd9166c3f95948c597065ac982c074929a /spec | |
parent | 4427c63dbe15912a52c2228fcf22080c1d7df741 (diff) | |
download | bundler-ad7fbf26c995440f7bf3b295cbd68be3855f394a.tar.gz |
Update binstubs specs to handle legacy rubygemsseg-bundler-binstubs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/commands/binstubs_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb index a80adf6645..fa44928625 100644 --- a/spec/commands/binstubs_spec.rb +++ b/spec/commands/binstubs_spec.rb @@ -67,7 +67,10 @@ 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", 'puts "#{Gem.loaded_specs.values.reject(&:default_gem?).map(&:full_name).sort.inspect}"' + s.write "bin/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 end end install_gemfile! <<-G |