Sha256: 7a4f2351a8e24649742e0859316936c6adbc2263e397f1c36dcaad4242fa794e
Contents?: true
Size: 582 Bytes
Versions: 9
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true RSpec.describe Pursuit::DSL do subject(:record) { Product.new } describe '.search_options' do subject(:search_options) { record.class.search_options } it { is_expected.to be_a(Pursuit::SearchOptions) } end describe '.search' do subject(:search) { record.class.search('funky') } let(:product_a) { Product.create!(title: 'Plain Shirt') } let(:product_b) { Product.create!(title: 'Funky Shirt') } it 'is expected to return the matching records' do expect(search).to contain_exactly(product_b) end end end
Version data entries
9 entries across 9 versions & 1 rubygems