Sha256: 830fc34d171962d9a35734514f9d5cd353fb2f1e13ea1802f3d2a7354af005e0
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
require "spec_helper" describe Mongoid::Matchers::Nin do let(:matcher) do described_class.new("first") end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-3.1.7 | spec/mongoid/matchers/nin_spec.rb |
mongoid-3.1.6 | spec/mongoid/matchers/nin_spec.rb |
mongoid-3.1.5 | spec/mongoid/matchers/nin_spec.rb |