diff options
author | Robert Speicher <rspeicher@gmail.com> | 2018-06-06 16:26:00 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2018-06-07 09:54:41 -0500 |
commit | b38c75b3dc2dc655377a1b4070cb6f5242594dbe (patch) | |
tree | 658f1ea057aa6785ea4f378378a800b2b82f9d7f /spec/uploaders/gitlab_uploader_spec.rb | |
parent | 6d165c740cecf6aff4c7ec0bbb962e7964c15f1b (diff) | |
download | gitlab-ce-b38c75b3dc2dc655377a1b4070cb6f5242594dbe.tar.gz |
Correct more usages of non-relative `fixture_file_upload` paths
Diffstat (limited to 'spec/uploaders/gitlab_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/gitlab_uploader_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/uploaders/gitlab_uploader_spec.rb b/spec/uploaders/gitlab_uploader_spec.rb index 4fba122cce1..362f89424d4 100644 --- a/spec/uploaders/gitlab_uploader_spec.rb +++ b/spec/uploaders/gitlab_uploader_spec.rb @@ -62,7 +62,7 @@ describe GitlabUploader do expect(FileUtils).to receive(:mv).with(anything, /^#{subject.work_dir}/).and_call_original expect(FileUtils).to receive(:mv).with(/^#{subject.work_dir}/, /#{subject.cache_dir}/).and_call_original - fixture = Rails.root.join('spec', 'fixtures', 'rails_sample.jpg') + fixture = File.join('spec', 'fixtures', 'rails_sample.jpg') subject.cache!(fixture_file_upload(fixture)) expect(subject.file.path).to match(/#{subject.cache_dir}/) |