spec/integration/batch_download_spec.rb in ezid-client-1.6.0 vs spec/integration/batch_download_spec.rb in ezid-client-1.7.0
- old
+ new
@@ -1,19 +1,19 @@
require 'tempfile'
module Ezid
- RSpec.describe BatchDownload do
+ 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
- its(:download_url) { is_expected.to match(/\Ahttp:\/\/ezid\.cdlib\.org\/download\/\w+\.zip\z/) }
-
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.download_file(path: tmpdir))
+ expect(subject.file(path: tmpdir))
.to match(/\A#{tmpdir}\/\w+\.zip\z/)
end
}
end