Sha256: e85c03bf6fd307b000de7a7971db14f11839650a16f222c285c589090a4a3773
Contents?: true
Size: 706 Bytes
Versions: 22
Compression:
Stored size: 706 Bytes
Contents
require 'spec_helper' module CloudSesame module Query module AST 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
Version data entries
22 entries across 22 versions & 1 rubygems