spec/mongoid/matchable/ne_spec.rb in mongoid-6.1.0 vs spec/mongoid/matchable/ne_spec.rb in mongoid-6.1.1
- old
+ new
@@ -4,23 +4,23 @@
let(:matcher) do
described_class.new("first")
end
- describe "#matches?" do
+ describe "#_matches?" do
context "when the values are not equal" do
it "returns true" do
- expect(matcher.matches?("$ne" => "second")).to be true
+ expect(matcher._matches?("$ne" => "second")).to be true
end
end
context "when the values are equal" do
it "returns false" do
- expect(matcher.matches?("$ne" => "first")).to be false
+ expect(matcher._matches?("$ne" => "first")).to be false
end
end
context "when the value is an array" do
@@ -29,17 +29,17 @@
end
context "when the value is in the array" do
it "returns false" do
- expect(array_matcher.matches?("$ne" => "first")).to be false
+ expect(array_matcher._matches?("$ne" => "first")).to be false
end
end
context "when the value is not in the array" do
it "returns true" do
- expect(array_matcher.matches?("$ne" => "second")).to be true
+ expect(array_matcher._matches?("$ne" => "second")).to be true
end
end
end
end
end