Skip to content

Commit

Permalink
fix(be_result): commit config manually
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Mar 1, 2023
1 parent 6c14a57 commit 658e314
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/convenient_service/rspec/matchers/custom/results/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def matches?(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) }

##
Expand Down

0 comments on commit 658e314

Please sign in to comment.