Sha256: 98fd44347bb35a1b7895292f4fd90258e0438cb381ff71c6754ccc4bd537ad4f
Contents?: true
Size: 876 Bytes
Versions: 11
Compression:
Stored size: 876 Bytes
Contents
require 'spec_helper' describe ActiveFedora::Model do before(:all) do module SpecModel class Basic < ActiveFedora::Base end end end after(:all) do Object.send(:remove_const, :SpecModel) end describe '.solr_query_handler' do subject { SpecModel::Basic.solr_query_handler } after do # reset to default SpecModel::Basic.solr_query_handler = 'standard' end it { should eq 'standard' } context "when setting to something besides the default" do before { SpecModel::Basic.solr_query_handler = 'search' } it { should eq 'search' } end end describe ".from_class_uri" do subject { described_class.from_class_uri(uri) } context "a blank string" do before { expect(ActiveFedora::Base.logger).to receive(:warn) } let(:uri) { '' } it { should be_nil } end end end
Version data entries
11 entries across 11 versions & 1 rubygems