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