2016-12-15 17:59:25 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe RemoteDownloader do
|
|
|
|
let(:filename) { 'file_name.pdf' }
|
|
|
|
|
|
|
|
subject { described_class.new filename }
|
|
|
|
|
|
|
|
describe '#url' do
|
2018-10-23 12:31:21 +02:00
|
|
|
it { expect(subject.url).to eq 'https://static.demarches-simplifiees.fr/tps_dev/file_name.pdf' }
|
2018-10-31 12:50:48 +01:00
|
|
|
|
|
|
|
context 'no filename' do
|
|
|
|
let(:filename) { nil }
|
|
|
|
|
|
|
|
it { expect(subject.url).to be_nil }
|
|
|
|
end
|
2016-12-15 17:59:25 +01:00
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|