diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-03 10:15:15 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-03 10:27:46 +0100 |
commit | 2e70a1934e65fff0b1eed36ebf2f9d83e9fbe81b (patch) | |
tree | b68795dd4d754354093a1e8ae2da9131a2079f88 /spec/plugins/source/example_spec.rb | |
parent | e70d0f3d02c8c084b61969e71d1fa28a15a6d0ca (diff) | |
download | bundler-2e70a1934e65fff0b1eed36ebf2f9d83e9fbe81b.tar.gz |
Use standard require paths for names with dashes in specs
Diffstat (limited to 'spec/plugins/source/example_spec.rb')
-rw-r--r-- | spec/plugins/source/example_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/plugins/source/example_spec.rb b/spec/plugins/source/example_spec.rb index 64002d8f46..f2151a5a73 100644 --- a/spec/plugins/source/example_spec.rb +++ b/spec/plugins/source/example_spec.rb @@ -125,14 +125,14 @@ RSpec.describe "real source plugins" do end it "installs the gem executables" do - build_lib "gem-with-bin" do |s| + build_lib "gem_with_bin" do |s| s.executables = ["foo"] end install_gemfile <<-G source "#{file_uri_for(gem_repo2)}" # plugin source - source "#{lib_path("gem-with-bin-1.0")}", :type => :mpath do - gem "gem-with-bin" + source "#{lib_path("gem_with_bin-1.0")}", :type => :mpath do + gem "gem_with_bin" end G @@ -451,7 +451,7 @@ RSpec.describe "real source plugins" do bundle "install" run <<-RUBY - require 'ma-gitp-gem' + require 'ma/gitp/gem' puts "WIN" unless defined?(MAGITPGEM_PREV_REF) RUBY expect(out).to eq("WIN") @@ -462,7 +462,7 @@ RSpec.describe "real source plugins" do bundle "update ma-gitp-gem" run <<-RUBY - require 'ma-gitp-gem' + require 'ma/gitp/gem' puts "WIN" if defined?(MAGITPGEM_PREV_REF) RUBY expect(out).to eq("WIN") |