Sha256: 942b3f68e4be7b3cf59abc8e53b9fe2af402a5017124ba5c5f0023559cd048ba
Contents?: true
Size: 717 Bytes
Versions: 2
Compression:
Stored size: 717 Bytes
Contents
require 'spec_helper' describe FedoraMigrate::RubydoraConnection do describe 'initialize' do let(:fedora_url) { "http://my.fedora3.instance" } before do allow_any_instance_of(Rubydora::Repository).to receive(:check_repository_version!).and_return("3.8") end subject { described_class.new timeout: 3600, validateChecksum: true, url: fedora_url } specify "a timeout" do expect(subject.connection.client.options[:timeout]).to eql(3600) end specify "validate a checksum" do expect(subject.connection.config[:validateChecksum]).to be true end specify "a Fedora3 url" do expect(subject.connection.client.url).to eql fedora_url end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fedora-migrate-0.5.0 | spec/unit/rubydora_connection_spec.rb |
fedora-migrate-0.4.0 | spec/unit/rubydora_connection_spec.rb |