Sha256: 7caed94bbf9cc9cc45ede93462323a175e248271dce0510765d669af409e76b5
Contents?: true
Size: 495 Bytes
Versions: 24
Compression:
Stored size: 495 Bytes
Contents
require "spec_helper" describe Mongoid::Matchers::In do let(:matcher) { Mongoid::Matchers::In.new("first") } describe "#matches?" do context "when the values includes the attribute" do it "returns true" do matcher.matches?("$in" => ["first", "second"]).should be_true end end context "when the values dont include the atribute" do it "returns false" do matcher.matches?("$in" => ["third"]).should be_false end end end end
Version data entries
24 entries across 24 versions & 3 rubygems