Sha256: 6659a98f7bb1c60d86a5df60b239c24b1712198a6114c19555e07d7c7cc83151
Contents?: true
Size: 1.02 KB
Versions: 8
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe ActiveFedora::Config do describe "with a single fedora instance" do subject { ActiveFedora::Config.new('spec/fixtures/rails_root/config/fedora.yml', 'test') } its(:path) { should == 'spec/fixtures/rails_root/config/fedora.yml'} its(:credentials) { should == {:url => 'http://testhost.com:8983/fedora', :user=> 'fedoraAdmin', :password=> 'fedoraAdmin'}} it { should_not be_sharded } end describe "with several fedora shards" do subject { ActiveFedora::Config.new('spec/fixtures/sharded_fedora.yml', 'test') } its(:path) { should == 'spec/fixtures/sharded_fedora.yml'} 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 { should be_sharded } end end
Version data entries
8 entries across 8 versions & 1 rubygems