lib/convenient_service/rspec/matchers/custom/results/base.rb in convenient_service-0.9.0 vs lib/convenient_service/rspec/matchers/custom/results/base.rb in convenient_service-0.10.0

- old
+ new

@@ -23,9 +23,14 @@ def matches?(result) @result = result rules = [] + ## + # IMPORTANT: Makes `result.class.include?` from the following line idempotent. + # + result.commit_config! if result.respond_to?(:commit_config!) + rules << ->(result) { result.class.include?(Service::Plugins::HasResult::Entities::Result::Concern) } ## # IMPORTANT: Result status is NOT marked as checked intentionally, since it is a mutable operation. #