Sha256: de5f2c4472cefa8022239f1317c0a5d47642160b9742a1ee2f48b8d4fc180fbf
Contents?: true
Size: 626 Bytes
Versions: 10
Compression:
Stored size: 626 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 end
Version data entries
10 entries across 10 versions & 1 rubygems