Sha256: be93c72a7939edc23b979fd814bd3cd7ab427ea82e380ca06cd8d51af44c245a
Contents?: true
Size: 1002 Bytes
Versions: 8
Compression:
Stored size: 1002 Bytes
Contents
require 'spec_helper' describe ActiveFedora::Config do describe "with a single fedora instance" do conf = Psych.load(File.read('spec/fixtures/rails_root/config/fedora.yml'))['test'] subject { ActiveFedora::Config.new(conf) } its(:credentials) { should == {:url => 'http://testhost.com:8983/fedora', :user=> 'fedoraAdmin', :password=> 'fedoraAdmin'}} it { is_expected.not_to be_sharded } end describe "with several fedora shards" do conf = Psych.load(File.read('spec/fixtures/sharded_fedora.yml'))['test'] subject { ActiveFedora::Config.new(conf) } its(:credentials) { should == [{:url => 'http://127.0.0.1:8983/fedora1', :user=> 'fedoraAdmin', :password=> 'fedoraAdmin'}, {:url => 'http://127.0.0.1:8983/fedora2', :user=> 'fedoraAdmin', :password=> 'fedoraAdmin'}, {:url => 'http://127.0.0.1:8983/fedora3', :user=> 'fedoraAdmin', :password=> 'fedoraAdmin'}]} it { is_expected.to be_sharded } end end
Version data entries
8 entries across 8 versions & 1 rubygems