lib/convenient_service/rspec/matchers/custom/results/base.rb in convenient_service-0.11.0 vs lib/convenient_service/rspec/matchers/custom/results/base.rb in convenient_service-0.12.0

- old
+ new

@@ -1,8 +1,9 @@ # frozen_string_literal: true require_relative "base/commands" +require_relative "base/constants" require_relative "base/errors" module ConvenientService module RSpec module Matchers @@ -26,10 +27,10 @@ rules = [] ## # IMPORTANT: Makes `result.class.include?` from the following line idempotent. # - result.commit_config! if result.respond_to?(:commit_config!) + result.commit_config!(trigger: Constants::Triggers::BE_RESULT) 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.