Sha256: 515d9ba8c1f2dff7e72c71cbc1f5a2b0ab4c8efb61d036471b38fa2478e40ce1
Contents?: true
Size: 447 Bytes
Versions: 57
Compression:
Stored size: 447 Bytes
Contents
describe Spotlight::Filter do context 'with a simple string field' do subject { described_class.new(field: 'x', value: 'y') } it 'passes the value through' do expect(subject.to_hash).to eq 'x' => 'y' end end context 'with a boolean field' do subject { described_class.new(field: 'x_bsi', value: 'true') } it 'casts the value to a boolean' do expect(subject.to_hash).to eq 'x_bsi' => true end end end
Version data entries
57 entries across 57 versions & 1 rubygems