diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-03 20:48:46 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | ea4824ee0ffcea5fcfacfe40b4f399efe310455a (patch) | |
tree | 8f3e5b3049944a718dd7bf356027c7cdc29f0baf /spec/bundler/runtime | |
parent | 596588c6978b1bef4a19328a978ff063d05cb6ab (diff) | |
download | ruby-ea4824ee0ffcea5fcfacfe40b4f399efe310455a.tar.gz |
[rubygems/rubygems] s/run!/run
https://github.com/rubygems/rubygems/commit/e3f60d8aec
Diffstat (limited to 'spec/bundler/runtime')
-rw-r--r-- | spec/bundler/runtime/require_spec.rb | 8 | ||||
-rw-r--r-- | spec/bundler/runtime/setup_spec.rb | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/bundler/runtime/require_spec.rb b/spec/bundler/runtime/require_spec.rb index a1c0005511..ad30529e86 100644 --- a/spec/bundler/runtime/require_spec.rb +++ b/spec/bundler/runtime/require_spec.rb @@ -375,7 +375,7 @@ RSpec.describe "Bundler.require" do gem "rack" G - run! <<-R + run <<-R path = File.join(Gem.dir, "specifications", "rack-1.0.0.gemspec") contents = File.read(path) contents = contents.lines.to_a.insert(-2, "\n raise 'broken gemspec'\n").join @@ -384,7 +384,7 @@ RSpec.describe "Bundler.require" do end R - run! <<-R + run <<-R Bundler.require puts "WIN" R @@ -399,7 +399,7 @@ RSpec.describe "Bundler.require" do gem "foo", :git => "#{lib_path("foo-1.0")}" G - run! <<-R + run <<-R path = Gem.loaded_specs["foo"].loaded_from contents = File.read(path) contents = contents.lines.to_a.insert(-2, "\n raise 'broken gemspec'\n").join @@ -408,7 +408,7 @@ RSpec.describe "Bundler.require" do end R - run! <<-R + run <<-R Bundler.require puts "WIN" R diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb index 9ff15f83b0..85f86db2d1 100644 --- a/spec/bundler/runtime/setup_spec.rb +++ b/spec/bundler/runtime/setup_spec.rb @@ -670,7 +670,7 @@ RSpec.describe "Bundler.setup" do gem "rack" G - run! <<-R + run <<-R File.open(File.join(Gem.dir, "specifications", "broken.gemspec"), "w") do |f| f.write <<-RUBY # -*- encoding: utf-8 -*- @@ -685,7 +685,7 @@ end end R - run! <<-R + run <<-R puts "WIN" R @@ -722,7 +722,7 @@ end gem "with_man" G - run! "puts ENV['MANPATH']" + run "puts ENV['MANPATH']" expect(out).to eq("#{default_bundle_path("gems/with_man-1.0/man")}#{File::PATH_SEPARATOR}/foo") end end @@ -736,7 +736,7 @@ end gem "with_man" G - run! "puts ENV['MANPATH']" + run "puts ENV['MANPATH']" expect(out).to eq(default_bundle_path("gems/with_man-1.0/man").to_s) end end |