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