spec/unit/fedora_spec.rb in active-fedora-11.5.6 vs spec/unit/fedora_spec.rb in active-fedora-12.0.0
- old
+ new
@@ -13,7 +13,19 @@
specify {
expect(Faraday).to receive(:new).with("https://example.com", ssl: { ca_path: '/path/to/certs' }).and_call_original
fedora.authorized_connection
}
end
+ describe "with request options" do
+ let(:config) {
+ { url: "https://example.com",
+ user: "fedoraAdmin",
+ password: "fedoraAdmin",
+ request: { timeout: 600, open_timeout: 60 } }
+ }
+ specify {
+ expect(Faraday).to receive(:new).with("https://example.com", request: { timeout: 600, open_timeout: 60 }).and_call_original
+ fedora.authorized_connection
+ }
+ end
end
end