diff options
Diffstat (limited to 'spec/commands/config_spec.rb')
-rw-r--r-- | spec/commands/config_spec.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb index 2d762ff998..33134bef0c 100644 --- a/spec/commands/config_spec.rb +++ b/spec/commands/config_spec.rb @@ -10,19 +10,19 @@ describe ".bundle/config" do describe "BUNDLE_APP_CONFIG" do it "can be moved with an environment variable" do - ENV['BUNDLE_APP_CONFIG'] = tmp('foo/bar').to_s + ENV["BUNDLE_APP_CONFIG"] = tmp("foo/bar").to_s bundle "install --path vendor/bundle" - expect(bundled_app('.bundle')).not_to exist - expect(tmp('foo/bar/config')).to exist + expect(bundled_app(".bundle")).not_to exist + expect(tmp("foo/bar/config")).to exist should_be_installed "rack 1.0.0" end it "can provide a relative path with the environment variable" do - FileUtils.mkdir_p bundled_app('omg') - Dir.chdir bundled_app('omg') + FileUtils.mkdir_p bundled_app("omg") + Dir.chdir bundled_app("omg") - ENV['BUNDLE_APP_CONFIG'] = "../foo" + ENV["BUNDLE_APP_CONFIG"] = "../foo" bundle "install --path vendor/bundle" expect(bundled_app(".bundle")).not_to exist @@ -31,12 +31,12 @@ describe ".bundle/config" do end it "removes environment.rb from BUNDLE_APP_CONFIG's path" do - FileUtils.mkdir_p(tmp('foo/bar')) - ENV['BUNDLE_APP_CONFIG'] = tmp('foo/bar').to_s + FileUtils.mkdir_p(tmp("foo/bar")) + ENV["BUNDLE_APP_CONFIG"] = tmp("foo/bar").to_s bundle "install" - FileUtils.touch tmp('foo/bar/environment.rb') + FileUtils.touch tmp("foo/bar/environment.rb") should_be_installed "rack 1.0.0" - expect(tmp('foo/bar/environment.rb')).not_to exist + expect(tmp("foo/bar/environment.rb")).not_to exist end end @@ -232,7 +232,7 @@ E it "doesn't duplicate quotes around values", :if => (RUBY_VERSION >= "2.1") do bundled_app(".bundle").mkpath - File.open(bundled_app(".bundle/config"), 'w') do |f| + File.open(bundled_app(".bundle/config"), "w") do |f| f.write 'BUNDLE_FOO: "$BUILD_DIR"' end |