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

Version Path
active-fedora-9.13.0 spec/unit/model_spec.rb
active-fedora-9.12.0 spec/unit/model_spec.rb
active-fedora-9.11.0 spec/unit/model_spec.rb
active-fedora-9.10.4 spec/unit/model_spec.rb
active-fedora-9.10.3 spec/unit/model_spec.rb
active-fedora-9.10.2 spec/unit/model_spec.rb
active-fedora-9.10.1 spec/unit/model_spec.rb
active-fedora-9.10.0 spec/unit/model_spec.rb
active-fedora-9.10.0.pre2 spec/unit/model_spec.rb
active-fedora-9.10.0.pre1 spec/unit/model_spec.rb