Add tests for remote downloader
This commit is contained in:
parent
14df85d16d
commit
ea5ef257b8
1 changed files with 12 additions and 0 deletions
12
spec/uploaders/remote_downloader_spec.rb
Normal file
12
spec/uploaders/remote_downloader_spec.rb
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe RemoteDownloader do
|
||||||
|
|
||||||
|
let(:filename) { 'file_name.pdf' }
|
||||||
|
|
||||||
|
subject { described_class.new filename }
|
||||||
|
|
||||||
|
describe '#url' do
|
||||||
|
it { expect(subject.url).to eq 'https://storage.apientreprise.fr/tps_dev/file_name.pdf' }
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue