Sha256: bd07bac955a075e76b47defd523feccaf44d13b2e28048a8a0e2b8c92a897ab8
Contents?: true
Size: 678 Bytes
Versions: 24
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' module CloudSesame module Query module Node describe Facet do let(:facet) { Facet.new(facet_options) } describe '#compile' do context 'when facet is not empty' do let(:facet_options) { { price: { size: 100 } } } it 'should return stringified JSON facet' do expect(facet.compile).to eq JSON.dump(facet_options) end end context 'when facet is empty' do let(:facet_options) { { } } it 'should return nil' do expect(facet.compile).to eq nil end end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems