spec/integration/batch_download_spec.rb in ezid-client-1.8.0 vs spec/integration/batch_download_spec.rb in ezid-client-1.9.0.rc1
- old
+ new
@@ -1,17 +1,17 @@
require 'tempfile'
module Ezid
- RSpec.describe BatchDownload, integration: true do
+ RSpec.describe BatchDownload, ezid: true do
subject do
a_week_ago = (Time.now - (7*24*60*60)).to_i
described_class.new(:anvl, compression: "zip", permanence: "test", status: "public", createdAfter: a_week_ago)
end
specify {
- expect(subject.download_url).to match(/\Ahttp:\/\/ezid\.cdlib\.org\/download\/\w+\.zip\z/)
- expect(subject.url).to match(/\Ahttp:\/\/ezid\.cdlib\.org\/download\/\w+\.zip\z/)
+ expect(subject.download_url).to match(/\Ahttps:\/\/ezid\.cdlib\.org\/download\/\w+\.zip\z/)
+ expect(subject.url).to match(/\Ahttps:\/\/ezid\.cdlib\.org\/download\/\w+\.zip\z/)
Dir.mktmpdir do |tmpdir|
expect(subject.file(path: tmpdir))
.to match(/\A#{tmpdir}\/\w+\.zip\z/)
end
}