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