Sha256: 24152e7001522cd1e702cf1ed1073896caf39ef88949ec7b309d0663830d9b1f

Contents?: true

Size: 434 Bytes

Versions: 12

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

describe Spotlight::Group, type: :model do
  let(:exhibit) { FactoryBot.create(:exhibit) }

  describe '#searches' do
    let(:group) { FactoryBot.create(:group_with_searches, exhibit: exhibit, searches_count: 4) }

    it do
      expect(group.searches.count).to eq 4
    end

    it do
      group.searches.all do |search|
        expect(search).to be_an Spotlight::Search
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.0 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.3.0 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.2.0 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.1.0 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.3 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.2 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.1 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.0 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/models/spotlight/group_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/models/spotlight/group_spec.rb