diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2015-10-18 19:28:55 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2015-10-18 19:28:55 -0500 |
commit | 9ee23a67428d158aee397b84748434726810a445 (patch) | |
tree | 022de0e6fae054e5a2f5608e7fa709b2e0c52e7b | |
parent | 18e50d45ac22169cd071d729016d0ba0122a7335 (diff) | |
download | bundler-9ee23a67428d158aee397b84748434726810a445.tar.gz |
[RuboCop] Autocorrect offenses after rebase
-rw-r--r-- | spec/commands/clean_spec.rb | 4 | ||||
-rw-r--r-- | spec/support/helpers.rb | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/spec/commands/clean_spec.rb b/spec/commands/clean_spec.rb index cd5444e435..fcb955bd4b 100644 --- a/spec/commands/clean_spec.rb +++ b/spec/commands/clean_spec.rb @@ -615,9 +615,7 @@ describe "bundle clean" do end it "doesn't remove extensions artifacts from bundled git gems after clean", :rubygems => "2.2" do - build_git "very_simple_git_binary" do |s| - s.add_c_extension - end + build_git "very_simple_git_binary", &:add_c_extension revision = revision_for(lib_path("very_simple_git_binary-1.0")) diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 4f7190edb2..49d0d6f133 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -176,7 +176,7 @@ module Spec def lockfile(*args) if args.empty? - File.open("Gemfile.lock", "r") {|f| f.read } + File.open("Gemfile.lock", "r", &:read) else create_file("Gemfile.lock", *args) end |