spec/unit/case_spec.rb in dry-matcher-0.6.0 vs spec/unit/case_spec.rb in dry-matcher-0.7.0
- old
+ new
@@ -7,10 +7,10 @@
end
end
describe "#resolve" do
it "calls the resolve proc with the value" do
- kase = described_class.new(match: -> * { true }, resolve: resolve = -> value { value.to_s })
+ kase = described_class.new(match: -> * { true }, resolve: -> value { value.to_s })
expect(kase.resolve(123)).to eq "123"
end
it "defaults to passing through the value" do