diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-16 21:34:55 +0300 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-26 15:33:53 +0300 |
commit | c0047fc4738d1cf5d0feaf8595a8135505851f54 (patch) | |
tree | b74897dd177085cafc0e93e7cec68b040406b10b /spec/uploaders/file_mover_spec.rb | |
parent | 2dbd31c1bb50be8bd72869c11d9600b951354f66 (diff) |
personal snippets will now comply with `background_upload`
Diffstat (limited to 'spec/uploaders/file_mover_spec.rb')
-rw-r--r-- | spec/uploaders/file_mover_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/uploaders/file_mover_spec.rb b/spec/uploaders/file_mover_spec.rb index bc024cd307c..68b7e24776d 100644 --- a/spec/uploaders/file_mover_spec.rb +++ b/spec/uploaders/file_mover_spec.rb @@ -36,6 +36,12 @@ describe FileMover do it 'creates a new update record' do expect { subject }.to change { Upload.count }.by(1) end + + it 'schedules a background migration' do + expect_any_instance_of(PersonalFileUploader).to receive(:schedule_background_upload).once + + subject + end end context 'when update_markdown fails' do |