summaryrefslogtreecommitdiff
path: root/spec/uploaders
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2019-02-13 16:23:58 +0800
committerMark Chao <mchao@gitlab.com>2019-02-13 16:50:31 +0800
commita9291f15ea10e3cfc94282ffb4e0969e9d4175eb (patch)
tree8603d97465ee4dc7af2507cce93debbfddc35830 /spec/uploaders
parent0f20c401d37354cb91ab66b6e220b95f2301dafb (diff)
downloadgitlab-ce-a9291f15ea10e3cfc94282ffb4e0969e9d4175eb.tar.gz
Align spec with actual usage
Currently we pass temp file path to FileMover
Diffstat (limited to 'spec/uploaders')
-rw-r--r--spec/uploaders/file_mover_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/uploaders/file_mover_spec.rb b/spec/uploaders/file_mover_spec.rb
index de29d0c943f..a28d7445b1c 100644
--- a/spec/uploaders/file_mover_spec.rb
+++ b/spec/uploaders/file_mover_spec.rb
@@ -2,7 +2,6 @@ require 'spec_helper'
describe FileMover do
let(:filename) { 'banana_sample.gif' }
- let(:file) { fixture_file_upload(File.join('spec', 'fixtures', filename)) }
let(:temp_file_path) { File.join('uploads/-/system/temp', 'secret55', filename) }
let(:temp_description) do
@@ -12,7 +11,7 @@ describe FileMover do
let(:file_path) { File.join('uploads/-/system/personal_snippet', snippet.id.to_s, 'secret55', filename) }
let(:snippet) { create(:personal_snippet, description: temp_description) }
- subject { described_class.new(file_path, snippet).execute }
+ subject { described_class.new(temp_file_path, snippet).execute }
describe '#execute' do
before do