Skip to content

Commit 8c8071e

Browse files
committed
Don't try to delete Gemfile.lock if it doesn't exist already
1 parent 09d9800 commit 8c8071e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support/sass_rails_test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def within_rails_app(name, without_gems = [], gem_options = $gem_options)
6666
Dir.chdir(tmpdir) do
6767
gem_options.each {|name, options| modify_gem_entry name, options}
6868
without_gems.each {|name| remove_gem name}
69-
FileUtils.rm("Gemfile.lock")
69+
FileUtils.rm("Gemfile.lock") if File.exist?("Gemfile.lock")
7070
runcmd "bundle install --verbose"
7171
yield tmpdir
7272
end

0 commit comments

Comments
 (0)