Sha256: 7abb623256f7fa0e5b0255393b1fbb8a916e9ccb5254e4087425c2db9832ea2a

Contents?: true

Size: 641 Bytes

Versions: 66

Compression:

Stored size: 641 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Config do
  context "with a single fedora instance" do
    let(:yaml) { Psych.load(File.read('spec/fixtures/rails_root/config/fedora.yml')) }
    let(:section) { 'test' }
    let(:conf) { described_class.new(yaml[section]) }

    describe "#credentials" do
      subject { conf.credentials }
      it { is_expected.to eq(url: 'http://testhost.com:8983/fedora', user: 'fedoraAdmin', password: 'fedoraAdmin') }
      describe "with SSL options" do
        let(:section) { 'test_ssl' }
        its([:ssl]) { is_expected.to eq(verify: false, ca_path: '/path/to/certs') }
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
active-fedora-12.2.4 spec/unit/config_spec.rb
active-fedora-12.2.3 spec/unit/config_spec.rb
active-fedora-11.5.6 spec/unit/config_spec.rb
active-fedora-12.2.2 spec/unit/config_spec.rb
active-fedora-11.2.1 spec/unit/config_spec.rb
active-fedora-12.2.1 spec/unit/config_spec.rb
active-fedora-12.0.3 spec/unit/config_spec.rb
active-fedora-11.5.5 spec/unit/config_spec.rb
active-fedora-13.1.2 spec/unit/config_spec.rb
active-fedora-13.1.1 spec/unit/config_spec.rb
active-fedora-13.1.0 spec/unit/config_spec.rb
active-fedora-13.0.0 spec/unit/config_spec.rb
active-fedora-12.1.1 spec/unit/config_spec.rb
active-fedora-12.1.0 spec/unit/config_spec.rb
active-fedora-11.5.4 spec/unit/config_spec.rb
active-fedora-11.5.3 spec/unit/config_spec.rb
active-fedora-12.0.2 spec/unit/config_spec.rb
active-fedora-12.0.1 spec/unit/config_spec.rb
active-fedora-11.5.2 spec/unit/config_spec.rb
active-fedora-12.0.0 spec/unit/config_spec.rb