Sha256: 7fd96036bc325ab9989b4b52d53632e5f6346c65a0625af3899b0f52f63af3d8

Contents?: true

Size: 489 Bytes

Versions: 54

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Querying do
  before do
    class SpecModel < ActiveFedora::Base
    end
  end

  after do
    Object.send(:remove_const, :SpecModel)
  end

  describe '.solr_query_handler' do
    subject { SpecModel.solr_query_handler }

    it { is_expected.to eq 'standard' }

    context "when setting to something besides the default" do
      before { SpecModel.solr_query_handler = 'search' }

      it { is_expected.to eq 'search' }
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
active-fedora-10.2.1 spec/unit/querying_spec.rb
active-fedora-11.0.0.rc5 spec/unit/querying_spec.rb
active-fedora-11.0.0.rc4 spec/unit/querying_spec.rb
active-fedora-10.2.0 spec/unit/querying_spec.rb
active-fedora-11.0.0.rc3 spec/unit/querying_spec.rb
active-fedora-11.0.0.rc2 spec/unit/querying_spec.rb
active-fedora-11.0.0.rc1 spec/unit/querying_spec.rb
active-fedora-10.1.0 spec/unit/querying_spec.rb
active-fedora-10.1.0.rc1 spec/unit/querying_spec.rb
active-fedora-10.0.0 spec/unit/querying_spec.rb
active-fedora-10.0.0.beta4 spec/unit/querying_spec.rb
active-fedora-10.0.0.beta3 spec/unit/querying_spec.rb
active-fedora-10.0.0.beta2 spec/unit/querying_spec.rb
active-fedora-10.0.0.beta1 spec/unit/querying_spec.rb