Sha256: f200941cbb1955e7a9ae542318b084879eff382227621109a59e2116d5a20866
Contents?: true
Size: 486 Bytes
Versions: 24
Compression:
Stored size: 486 Bytes
Contents
require "spec_helper" describe Mongoid::Matchers::All do let(:matcher) { Mongoid::Matchers::All.new(["first", "second"]) } describe "#matches?" do context "when the values are equal" do it "returns true" do matcher.matches?("$all" => ["first", "second"]).should be_true end end context "when the values are not equal" do it "returns false" do matcher.matches?("$all" => ["first"]).should be_false end end end end
Version data entries
24 entries across 24 versions & 3 rubygems