Sha256: ef0a78af12dd331491f07255c566de4fb3c247a4344c46720fbc68ba006e4631

Contents?: true

Size: 563 Bytes

Versions: 15

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Fedora do
  subject { described_class.new(config) }
  describe "#authorized_connection" do
    describe "with SSL options" do
      let(:config) {
        { url: "https://example.com",
          user: "fedoraAdmin",
          password: "fedoraAdmin",
          ssl: { ca_path: '/path/to/certs' }
        }
      }
      specify {
        expect(Faraday).to receive(:new).with("https://example.com", ssl: { ca_path: '/path/to/certs' }).and_call_original
        subject.authorized_connection
      }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
active-fedora-10.3.0 spec/unit/fedora_spec.rb
active-fedora-10.3.0.rc2 spec/unit/fedora_spec.rb
active-fedora-10.3.0.rc1 spec/unit/fedora_spec.rb
active-fedora-10.2.1 spec/unit/fedora_spec.rb
active-fedora-10.2.0 spec/unit/fedora_spec.rb
active-fedora-10.1.0 spec/unit/fedora_spec.rb
active-fedora-10.1.0.rc1 spec/unit/fedora_spec.rb
active-fedora-10.0.0 spec/unit/fedora_spec.rb
active-fedora-10.0.0.beta4 spec/unit/fedora_spec.rb
active-fedora-10.0.0.beta3 spec/unit/fedora_spec.rb
active-fedora-10.0.0.beta2 spec/unit/fedora_spec.rb
active-fedora-10.0.0.beta1 spec/unit/fedora_spec.rb
active-fedora-9.13.0 spec/unit/fedora_spec.rb
active-fedora-9.12.0 spec/unit/fedora_spec.rb
active-fedora-9.11.0 spec/unit/fedora_spec.rb