Sha256: 500fdc4e3d1b246e00c33b1a053b641465aa1a1a315d2b9c8c08fcaf1bb62d57

Contents?: true

Size: 512 Bytes

Versions: 66

Compression:

Stored size: 512 Bytes

Contents

require 'spec_helper'

describe CurationConcerns::EmbargoSearchBuilder do
  let(:context) { double }
  let(:search_builder) { described_class.new(context) }

  describe "#processor_chain" do
    subject { search_builder.processor_chain }
    it { is_expected.to eq [:with_pagination, :with_sorting, :only_active_embargoes] }
  end

  describe "#with_sorting" do
    subject { {} }
    before { search_builder.with_sorting(subject) }
    it { is_expected.to eq(sort: 'embargo_release_date_dtsi desc') }
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.7 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-2.0.0 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-2.0.0.rc2 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.6 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.5 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.4 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.3 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.2 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-2.0.0.rc1 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.1 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.0 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.7.0.beta1 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.6.3 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.6.2 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.6.1 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.6.0 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.5.0 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.4.0 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb
curation_concerns-1.3.3 spec/search_builders/curation_concerns/embargo_search_builder_spec.rb