diff options
author | Rémy Coutable <remy@rymai.me> | 2016-08-11 12:46:58 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-08-11 12:46:58 +0000 |
commit | 2fee83376788574824192ff2ac417edc9adfadb4 (patch) | |
tree | 539cde163ad7877f572ce0b1f4c6c8015309bdc6 /spec | |
parent | 9d27e8f097be4d392e74bc1a3116f46d4d80cf6c (diff) | |
parent | 96ebc8c4f7223091d97c38c442d68c8058d26261 (diff) | |
download | gitlab-ce-2fee83376788574824192ff2ac417edc9adfadb4.tar.gz |
Merge branch 'file_exists_deprecated' into 'master'
Use `File::exist?` instead of `File::exists?`
Each `File::exists?` replaced to `File::exist?`.
Since version ruby-2.2.0, method `File::exists?` is deprecated.
See merge request !5747
Diffstat (limited to 'spec')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index baf78208ec5..548e7780c36 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -42,7 +42,7 @@ describe 'gitlab:app namespace rake task' do before do allow(Dir).to receive(:glob).and_return([]) allow(Dir).to receive(:chdir) - allow(File).to receive(:exists?).and_return(true) + allow(File).to receive(:exist?).and_return(true) allow(Kernel).to receive(:system).and_return(true) allow(FileUtils).to receive(:cp_r).and_return(true) allow(FileUtils).to receive(:mv).and_return(true) |