diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-09-23 11:23:47 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-09-23 11:23:47 +0200 |
commit | d5c81a8d4a4fe0d2429fcd48aee7bfae17ef176d (patch) | |
tree | 9a61ccbfa3d46c3cf5f9f0dd15ee45fee61455c0 | |
parent | 0241efba59edda3195173004e73aa6e17f99a69a (diff) | |
parent | 8ec602e64fd3129a8459ba40c7e01979fc155d00 (diff) | |
download | gitlab-ce-d5c81a8d4a4fe0d2429fcd48aee7bfae17ef176d.tar.gz |
Merge pull request #7692 from mr-vinn/fix-spec-rm
Use FileUtils to delete instead of File
-rw-r--r-- | spec/lib/gitlab/satellite/action_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/satellite/action_spec.rb b/spec/lib/gitlab/satellite/action_spec.rb index 0622caf1e3b..2af1e9e32f9 100644 --- a/spec/lib/gitlab/satellite/action_spec.rb +++ b/spec/lib/gitlab/satellite/action_spec.rb @@ -59,7 +59,7 @@ describe 'Gitlab::Satellite::Action' do called = false #set assumptions - File.rm(project.satellite.lock_file) unless !File.exists? project.satellite.lock_file + FileUtils.rm_f(project.satellite.lock_file) File.exists?(project.satellite.lock_file).should be_false |