Sha256: 152570769bceb07eb78c957c0fb90bc87c66620e682f286a11b37c940875344a
Contents?: true
Size: 755 Bytes
Versions: 24
Compression:
Stored size: 755 Bytes
Contents
module CloudSesame module Query module AST module Abstract describe Operator do let(:context) {{}} let(:options) {{}} let(:block) { Proc.new {} } subject { Operator.new(context, options, &block) } describe '#boost' do context 'given boost option' do let(:options) { { boost: 2 } } it 'should return an compiled boost value' do expect(subject.boost).to eq " boost=2" end end context 'given no boost option' do it 'should return nothing' do expect(subject.boost).to eq nil end end end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems