diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:29:42 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:29:42 -0600 |
commit | 5782a9f536ba4440d74e4d4fcda25b26721982b3 (patch) | |
tree | 23816f305bcbc5b78d63f5327ac03c67f7dda5b7 /spec/runtime | |
parent | f25e6bfc5f2beb2c1b509460c4491b3fb0f7c719 (diff) | |
download | bundler-5782a9f536ba4440d74e4d4fcda25b26721982b3.tar.gz |
[RuboCop] Enable Style/PercentLiteralDelimiters
Diffstat (limited to 'spec/runtime')
-rw-r--r-- | spec/runtime/setup_spec.rb | 16 | ||||
-rw-r--r-- | spec/runtime/with_clean_env_spec.rb | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index a123aff6..4f0d3953 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -410,7 +410,7 @@ describe "Bundler.setup" do gem "rack", :git => "#{lib_path("rack-0.8")}", :branch => "master" G - bundle %|config local.rack #{lib_path("local-rack")}| + bundle %(config local.rack #{lib_path("local-rack")}) bundle :install expect(out).to match(/at #{lib_path('local-rack')}/) @@ -429,7 +429,7 @@ describe "Bundler.setup" do gem "rack", :git => "#{lib_path("rack-0.8")}", :branch => "master" G - bundle %|config local.rack #{lib_path("local-rack")}| + bundle %(config local.rack #{lib_path("local-rack")}) bundle :install expect(out).to match(/at #{lib_path('local-rack')}/) @@ -452,7 +452,7 @@ describe "Bundler.setup" do gem "rack", :git => "#{lib_path("rack-0.8")}", :branch => "master" G - bundle %|config local.rack #{lib_path("local-rack")}| + bundle %(config local.rack #{lib_path("local-rack")}) bundle :install expect(out).to match(/at #{lib_path('local-rack')}/) @@ -480,7 +480,7 @@ describe "Bundler.setup" do gem "rack", :git => "#{lib_path("rack-0.8")}", :ref => "master", :branch => "nonexistant" G - bundle %|config local.rack #{lib_path("local-rack")}| + bundle %(config local.rack #{lib_path("local-rack")}) run "require 'rack'", :expect_err => true expect(err).to match(/is using branch master but Gemfile specifies nonexistant/) end @@ -620,7 +620,7 @@ describe "Bundler.setup" do G ENV["GEM_HOME"] = "" - bundle %{exec ruby -e "require 'set'"} + bundle %(exec ruby -e "require 'set'") expect(err).to be_empty end @@ -630,7 +630,7 @@ describe "Bundler.setup" do build_gem("requirepaths") do |s| s.write("lib/rq.rb", "puts 'yay'") s.write("src/rq.rb", "puts 'nooo'") - s.require_paths = %w[lib src] + s.require_paths = %w(lib src) end end @@ -834,7 +834,7 @@ describe "Bundler.setup" do describe "with a gemspec that requires other files" do before :each do build_git "bar", :gemspec => false do |s| - s.write "lib/bar/version.rb", %{BAR_VERSION = '1.0'} + s.write "lib/bar/version.rb", %(BAR_VERSION = '1.0') s.write "bar.gemspec", <<-G lib = File.expand_path('../lib/', __FILE__) $:.unshift lib unless $:.include?(lib) @@ -894,7 +894,7 @@ describe "Bundler.setup" do gem "bundler", :path => "#{File.expand_path("..", lib)}" G - bundle %|exec ruby -e "require 'bundler'; Bundler.setup"| + bundle %(exec ruby -e "require 'bundler'; Bundler.setup") expect(err).to be_empty end end diff --git a/spec/runtime/with_clean_env_spec.rb b/spec/runtime/with_clean_env_spec.rb index eed024a3..0ceb4adf 100644 --- a/spec/runtime/with_clean_env_spec.rb +++ b/spec/runtime/with_clean_env_spec.rb @@ -77,7 +77,7 @@ describe "Bundler.with_env helpers" do describe "Bundler.clean_system" do it "runs system inside with_clean_env" do - Bundler.clean_system(%{echo 'if [ "$BUNDLE_PATH" = "" ]; then exit 42; else exit 1; fi' | /bin/sh}) + Bundler.clean_system(%(echo 'if [ "$BUNDLE_PATH" = "" ]; then exit 42; else exit 1; fi' | /bin/sh)) expect($?.exitstatus).to eq(42) end end @@ -85,7 +85,7 @@ describe "Bundler.with_env helpers" do describe "Bundler.clean_exec" do it "runs exec inside with_clean_env" do pid = Kernel.fork do - Bundler.clean_exec(%{echo 'if [ "$BUNDLE_PATH" = "" ]; then exit 42; else exit 1; fi' | /bin/sh}) + Bundler.clean_exec(%(echo 'if [ "$BUNDLE_PATH" = "" ]; then exit 42; else exit 1; fi' | /bin/sh)) end Process.wait(pid) expect($?.exitstatus).to eq(42) |