Sha256: cb3568c8ae5517a40eced7cc3c6588d2f38df0e3205b7818208ed693c39babbd
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
require 'tempfile' module Ezid RSpec.describe BatchDownload, integration: 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/) Dir.mktmpdir do |tmpdir| expect(subject.file(path: tmpdir)) .to match(/\A#{tmpdir}\/\w+\.zip\z/) end } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ezid-client-1.8.0 | spec/integration/batch_download_spec.rb |
ezid-client-1.7.1 | spec/integration/batch_download_spec.rb |
ezid-client-1.7.0 | spec/integration/batch_download_spec.rb |