From ea4824ee0ffcea5fcfacfe40b4f399efe310455a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 3 Jun 2020 20:48:46 +0200 Subject: [rubygems/rubygems] s/run!/run https://github.com/rubygems/rubygems/commit/e3f60d8aec --- spec/bundler/install/deploy_spec.rb | 2 +- spec/bundler/install/gemfile/gemspec_spec.rb | 2 +- spec/bundler/install/gemfile/git_spec.rb | 22 +++++++++++----------- spec/bundler/install/gemfile/groups_spec.rb | 2 +- spec/bundler/install/gems/compact_index_spec.rb | 2 +- .../bundler/install/gems/native_extensions_spec.rb | 6 +++--- spec/bundler/install/global_cache_spec.rb | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) (limited to 'spec/bundler/install') diff --git a/spec/bundler/install/deploy_spec.rb b/spec/bundler/install/deploy_spec.rb index a89dc0f858..429041d9e9 100644 --- a/spec/bundler/install/deploy_spec.rb +++ b/spec/bundler/install/deploy_spec.rb @@ -238,7 +238,7 @@ RSpec.describe "install in deployment or frozen mode" do bundle "config --local without development" bundle "config --local deployment true" bundle :install, :env => { "DEBUG" => "1" } - run! "puts :WIN" + run "puts :WIN" expect(out).to eq("WIN") end diff --git a/spec/bundler/install/gemfile/gemspec_spec.rb b/spec/bundler/install/gemfile/gemspec_spec.rb index 70b5367e15..8e13ac05a9 100644 --- a/spec/bundler/install/gemfile/gemspec_spec.rb +++ b/spec/bundler/install/gemfile/gemspec_spec.rb @@ -255,7 +255,7 @@ RSpec.describe "bundle install from an existing gemspec" do expect(the_bundle).to include_gems "foo 1.0.0" - run! "Gem.finish_resolve; puts 'WIN'" + run "Gem.finish_resolve; puts 'WIN'" expect(out).to eq("WIN") end diff --git a/spec/bundler/install/gemfile/git_spec.rb b/spec/bundler/install/gemfile/git_spec.rb index 9b68b424e4..81d234e101 100644 --- a/spec/bundler/install/gemfile/git_spec.rb +++ b/spec/bundler/install/gemfile/git_spec.rb @@ -232,7 +232,7 @@ RSpec.describe "bundle install with git sources" do G expect(err).to be_empty - run! <<-RUBY + run <<-RUBY require 'foo' puts "WIN" if defined?(FOO) RUBY @@ -266,7 +266,7 @@ RSpec.describe "bundle install with git sources" do G expect(err).to be_empty - run! <<-RUBY + run <<-RUBY require 'foo' puts "WIN" if defined?(FOO) RUBY @@ -453,7 +453,7 @@ RSpec.describe "bundle install with git sources" do bundle %(config set local.rack #{lib_path("local-rack")}) bundle :install - run! "require 'rack'" + run "require 'rack'" expect(out).to eq("LOCAL") end @@ -1135,7 +1135,7 @@ RSpec.describe "bundle install with git sources" do R expect(out).to eq("YES") - run! <<-R + run <<-R puts $:.grep(/ext/) R expect(out).to include(Pathname.glob(default_bundle_path("bundler/gems/extensions/**/foo-1.0-*")).first.to_s) @@ -1223,7 +1223,7 @@ In Gemfile: gem "foo", :git => "#{lib_path("foo-1.0")}" G - run! <<-R + run <<-R require 'foo' puts FOO R @@ -1236,7 +1236,7 @@ In Gemfile: gem "foo", :git => "#{lib_path("foo-1.0")}" G - run! <<-R + run <<-R require 'foo' puts FOO R @@ -1265,7 +1265,7 @@ In Gemfile: gem "foo", :git => "#{lib_path("foo-1.0")}" G - run! <<-R + run <<-R require 'foo' puts FOO R @@ -1279,7 +1279,7 @@ In Gemfile: gem "foo", :git => "#{lib_path("foo-1.0")}" G - run! <<-R + run <<-R require 'foo' puts FOO R @@ -1307,7 +1307,7 @@ In Gemfile: gem "foo", :git => "#{lib_path("foo-1.0")}" G - run! <<-R + run <<-R require 'foo' puts FOO R @@ -1323,7 +1323,7 @@ In Gemfile: gem "foo", :git => "#{lib_path("foo-1.0")}", :branch => "branch2" G - run! <<-R + run <<-R require 'foo' puts FOO R @@ -1334,7 +1334,7 @@ In Gemfile: update_git("foo") bundle "update foo" - run! <<-R + run <<-R require 'foo' puts FOO R diff --git a/spec/bundler/install/gemfile/groups_spec.rb b/spec/bundler/install/gemfile/groups_spec.rb index e4b937fe3a..4e7484ddbd 100644 --- a/spec/bundler/install/gemfile/groups_spec.rb +++ b/spec/bundler/install/gemfile/groups_spec.rb @@ -122,7 +122,7 @@ RSpec.describe "bundle install with groups" do it "allows Bundler.setup for specific groups" do bundle "config --local without emo" bundle :install - run!("require 'rack'; puts RACK", :default) + run("require 'rack'; puts RACK", :default) expect(out).to eq("1.0.0") end diff --git a/spec/bundler/install/gems/compact_index_spec.rb b/spec/bundler/install/gems/compact_index_spec.rb index 3f86629230..e5ec9cc567 100644 --- a/spec/bundler/install/gems/compact_index_spec.rb +++ b/spec/bundler/install/gems/compact_index_spec.rb @@ -59,7 +59,7 @@ RSpec.describe "compact index api" do # can't use `include_gems` here since the `require` will conflict on a # case-insensitive FS - run! "Bundler.require; puts Gem.loaded_specs.values_at('rack', 'Rack').map(&:full_name)" + run "Bundler.require; puts Gem.loaded_specs.values_at('rack', 'Rack').map(&:full_name)" expect(out).to eq("rack-1.0\nRack-0.1") end diff --git a/spec/bundler/install/gems/native_extensions_spec.rb b/spec/bundler/install/gems/native_extensions_spec.rb index 742f2a48a9..8a4de3cf92 100644 --- a/spec/bundler/install/gems/native_extensions_spec.rb +++ b/spec/bundler/install/gems/native_extensions_spec.rb @@ -83,7 +83,7 @@ RSpec.describe "installing a gem with native extensions", :ruby_repo do expect(err).to_not include("warning: conflicting chdir during another chdir block") - run! "Bundler.require; puts CExtension.new.its_true" + run "Bundler.require; puts CExtension.new.its_true" expect(out).to eq("true") end @@ -135,7 +135,7 @@ RSpec.describe "installing a gem with native extensions", :ruby_repo do gem "c_extension_two", :git => #{lib_path("gems").to_s.dump} G - run! "Bundler.require; puts CExtension_one.new.value; puts CExtension_two.new.value" + run "Bundler.require; puts CExtension_one.new.value; puts CExtension_two.new.value" expect(out).to eq("one\ntwo") end @@ -174,7 +174,7 @@ RSpec.describe "installing a gem with native extensions", :ruby_repo do gem "c_extension", :git => #{lib_path("c_extension-1.0").to_s.dump} G - run! "Bundler.require; puts CExtension.new.its_true" + run "Bundler.require; puts CExtension.new.its_true" expect(out).to eq("true") end end diff --git a/spec/bundler/install/global_cache_spec.rb b/spec/bundler/install/global_cache_spec.rb index 947ef4fb09..f3609715fb 100644 --- a/spec/bundler/install/global_cache_spec.rb +++ b/spec/bundler/install/global_cache_spec.rb @@ -209,7 +209,7 @@ RSpec.describe "global gem caching" do cached_extensions = Pathname.glob(home(".bundle", "cache", "extensions", "*", "*", "*", "*", "*")).sort expect(cached_extensions).to eq [gem_binary_cache, git_binary_cache].sort - run! <<-R + run <<-R require 'very_simple_binary_c'; puts ::VERY_SIMPLE_BINARY_IN_C require 'very_simple_git_binary_c'; puts ::VERY_SIMPLE_GIT_BINARY_IN_C R @@ -225,7 +225,7 @@ RSpec.describe "global gem caching" do expect(Dir[home(".bundle", "cache", "extensions", "**", "*binary_c*")]).to all(end_with(".rb")) - run! <<-R + run <<-R require 'very_simple_binary_c' require 'very_simple_git_binary_c' R -- cgit v1.2.3