lib/dry/transaction/result_matcher.rb in dry-transaction-0.12.1 vs lib/dry/transaction/result_matcher.rb in dry-transaction-0.13.0
- old
+ new
@@ -8,10 +8,10 @@
resolve: -> result { result.value! }
),
failure: Dry::Matcher::Case.new(
match: -> result, step_name = nil {
if step_name
- result.failure? && result.failure.step.step_name == step_name
+ result.failure? && result.failure.step.name == step_name
else
result.failure?
end
},
resolve: -> result { result.failure.value }