spec/predicate/test_attr_split.rb in predicate-1.3.4 vs spec/predicate/test_attr_split.rb in predicate-2.0.0

- old
+ new

@@ -33,7 +33,19 @@ let(:pred){ p.eq(:x, 2) } it{ should eq({ x: pred }) } end + context "on match" do + let(:pred){ p.match(:x, "London") } + + it{ should eq({ x: pred }) } + end + + context "on match with two identifiers" do + let(:pred){ p.match(:x, :y) } + + it{ should eq({ nil => pred }) } + end + end end