summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/clean_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-04 22:14:19 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:57 +0900
commit8d9fc8466f639eb2740ac406947a047505fcdea6 (patch)
tree4bae4e8083778e773c4a1266222d0e6d73f09283 /spec/bundler/commands/clean_spec.rb
parent2f1d52c266eae479576aa2accf6e13c8aa18e264 (diff)
[bundler/bundler] Reuse `lockfile` spec helper
https://github.com/bundler/bundler/commit/e6a03f1102
Diffstat (limited to 'spec/bundler/commands/clean_spec.rb')
-rw-r--r--spec/bundler/commands/clean_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/bundler/commands/clean_spec.rb b/spec/bundler/commands/clean_spec.rb
index 17a533ef19..2243a72b3d 100644
--- a/spec/bundler/commands/clean_spec.rb
+++ b/spec/bundler/commands/clean_spec.rb
@@ -568,9 +568,7 @@ RSpec.describe "bundle clean" do
gemfile_lock.each_with_index do |line, index|
gemfile_lock[index] = line[0..(11 + 7)] if line.include?(" revision:")
end
- File.open(bundled_app("Gemfile.lock"), "w") do |file|
- file.print gemfile_lock.join("\n")
- end
+ lockfile(bundled_app("Gemfile.lock"), gemfile_lock.join("\n"))
bundle "install", forgotten_command_line_options(:path => "vendor/bundle")