Sha256: c027d50016c891d23e427af9b3cdecf8d2880c02c194734962d237572977a04a
Contents?: true
Size: 493 Bytes
Versions: 27
Compression:
Stored size: 493 Bytes
Contents
require "spec_helper" describe Mongoid::Matchable::Size do let(:matcher) do described_class.new(["first", "second"]) end describe "#_matches?" do context "when the attribute is the same size" do it "returns true" do expect(matcher._matches?("$size" => 2)).to be true end end context "when the attribute is not the same size" do it "returns false" do expect(matcher._matches?("$size" => 5)).to be false end end end end
Version data entries
27 entries across 27 versions & 2 rubygems