Skip to content

Commit

Permalink
fix a few warnings that show up while running specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitarondekar committed Oct 2, 2012
1 parent 72502c9 commit db2bcee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/definition.rb
Expand Up @@ -235,7 +235,7 @@ def lock(file)
end

File.open(file, 'wb'){|f| f.puts(contents) }
rescue Errno::EACCES => e
rescue Errno::EACCES
raise Bundler::InstallError,
"There was an error while trying to write to Gemfile.lock. It is likely that \n" \
"you need to allow write permissions for the file at path: \n" \
Expand Down
8 changes: 3 additions & 5 deletions spec/cache/git_spec.rb
Expand Up @@ -142,8 +142,7 @@
end

it "displays warning message when detecting git repo in Gemfile" do
git = build_git "foo"
ref = git.ref_for("master", 11)
build_git "foo"

install_gemfile <<-G
gem "foo", :git => '#{lib_path("foo-1.0")}'
Expand All @@ -155,8 +154,7 @@
end

it "does not display warning message if cache_all is set in bundle config" do
git = build_git "foo"
ref = git.ref_for("master", 11)
build_git "foo"

install_gemfile <<-G
gem "foo", :git => '#{lib_path("foo-1.0")}'
Expand All @@ -168,4 +166,4 @@
out.should_not include("Your Gemfile contains path and git dependencies.")
end
end
end
end
2 changes: 0 additions & 2 deletions spec/runtime/with_clean_env_spec.rb
Expand Up @@ -29,8 +29,6 @@
gemfile ""
bundle "install --path vendor/bundle"

gem_path = ENV['GEM_PATH']

code = "Bundler.with_clean_env do;" +
" print ENV['GEM_PATH'] != '';" +
"end"
Expand Down

0 comments on commit db2bcee

Please sign in to comment.