Sha256: 40345d73d37597d4d13aa7c4549b46eb414b99676be0cd9757f09665758422d7
Contents?: true
Size: 587 Bytes
Versions: 4
Compression:
Stored size: 587 Bytes
Contents
describe Casino::Intersection::Match::All do let(:system) { Casino::Intersection::Match::All } describe '#eligible?' do let(:matcher) { system.new('$and', '', '', '') } subject { matcher.eligible? } it { subject.must_equal true } end describe '#evaluate' do let(:matcher) { system.new('$and', '', '', [{}]) } let(:base) { Casino::Intersection::Match::Base } subject { matcher.evaluate } it 'builds base matchers to evaluate' do base.stub(:new, OpenStruct.new(evaluate: true)) do subject.must_equal true end end end end
Version data entries
4 entries across 4 versions & 1 rubygems