Sha256: 8a70ded34a006dc47de5e8c5cc2ab39645be0849c5bd8c853d0eb40c0fab91c3

Contents?: true

Size: 563 Bytes

Versions: 27

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Fedora do
  subject(:fedora) { 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
        fedora.authorized_connection
      }
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
active-fedora-11.5.6 spec/unit/fedora_spec.rb
active-fedora-11.2.1 spec/unit/fedora_spec.rb
active-fedora-11.5.5 spec/unit/fedora_spec.rb
active-fedora-11.5.4 spec/unit/fedora_spec.rb
active-fedora-11.5.3 spec/unit/fedora_spec.rb
active-fedora-11.5.2 spec/unit/fedora_spec.rb
active-fedora-11.5.0 spec/unit/fedora_spec.rb
active-fedora-11.4.1 spec/unit/fedora_spec.rb
active-fedora-11.4.0 spec/unit/fedora_spec.rb
active-fedora-11.3.1 spec/unit/fedora_spec.rb
active-fedora-11.3.0 spec/unit/fedora_spec.rb
active-fedora-11.2.0 spec/unit/fedora_spec.rb
active-fedora-11.1.6 spec/unit/fedora_spec.rb
active-fedora-11.1.5 spec/unit/fedora_spec.rb
active-fedora-11.1.4 spec/unit/fedora_spec.rb
active-fedora-11.1.3 spec/unit/fedora_spec.rb
active-fedora-11.1.2 spec/unit/fedora_spec.rb
active-fedora-11.1.1 spec/unit/fedora_spec.rb
active-fedora-11.1.0 spec/unit/fedora_spec.rb
active-fedora-11.0.1 spec/unit/fedora_spec.rb