diff options
author | Andre Arko <andre@arko.net> | 2015-02-13 22:54:24 +1100 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-02-13 22:54:24 +1100 |
commit | 7c5ad266a26fb647c32d575bcbe18d4bc482ee4e (patch) | |
tree | 48ae5fbd31770a9051ea2144492be68cb2fb9a15 /spec/commands/config_spec.rb | |
parent | f2abc599d3edb8d8b8ac75308ba6fa293ae1d5aa (diff) | |
download | bundler-7c5ad266a26fb647c32d575bcbe18d4bc482ee4e.tar.gz |
Pathname doesn't have write :grimace:
Diffstat (limited to 'spec/commands/config_spec.rb')
-rw-r--r-- | spec/commands/config_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb index 881aed189f..f12a844cc1 100644 --- a/spec/commands/config_spec.rb +++ b/spec/commands/config_spec.rb @@ -276,10 +276,12 @@ end describe "setting gemfile via config" do context "when only the non-default Gemfile exists" do it "persists the gemfile location to .bundle/config" do - bundled_app("NotGemfile").write <<-G - source "file://#{gem_repo1}" - gem 'rack' - G + File.open(bundled_app("NotGemfile"), "w") do |f| + f.write <<-G + source "file://#{gem_repo1}" + gem 'rack' + G + end bundle "config --local gemfile #{bundled_app("NotGemfile")}" expect(File.exist?(".bundle/config")).to eq(true) |