spec/memoit_spec.rb in memoit-0.4.0 vs spec/memoit_spec.rb in memoit-0.4.1

- old
+ new

@@ -77,9 +77,13 @@ it "caches results when keyword arguments are used" do expect(instance.quux(kwak: "kwav")).to eq(instance.quux(kwak: "kwav")) end + it "ignores cache if keyword arguments differ" do + expect(instance.quux(kwak: "1")).not_to eq(instance.quux(kwak: "2")) + end + it "caches results when hash and keyword arguments are used" do expect(instance.corge({ hash_key: "hash_value" }, kwak: "kwav")).to eq(instance.corge({ hash_key: "hash_value" }, kwak: "kwav")) end it "ignores cache when block given" do