spec/unit/exposure_spec.rb in dry-view-0.2.1 vs spec/unit/exposure_spec.rb in dry-view-0.2.2

- old
+ new

@@ -176,8 +176,12 @@ let(:input) { {hello: "hi there"} } it "returns a matching key from the input" do expect(exposure.(input)).to eq "hi there" end + + it "returns nil when no input key matches" do + expect(exposure.(nothing_matches_here: true)).to be_nil + end end end end