From 6103701ca520fbee23b67116ae1795d58f12c02e Mon Sep 17 00:00:00 2001 From: Carlos Palhares Date: Mon, 6 Nov 2023 16:06:01 -0300 Subject: [PATCH] Fix rubocop violation --- packages/consent/lib/consent/rspec/consent_view.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/consent/lib/consent/rspec/consent_view.rb b/packages/consent/lib/consent/rspec/consent_view.rb index 38c50197..78f2e90a 100644 --- a/packages/consent/lib/consent/rspec/consent_view.rb +++ b/packages/consent/lib/consent/rspec/consent_view.rb @@ -63,8 +63,7 @@ def failure_message_base(failure) # rubocop:disable Metrics/MethodLength ) else actual_views = Consent.find_subjects(@subject_key) - .map(&:views) - .map(&:keys).flatten + .flat_map { |subject| subject.views.keys } format( "%s available views are %p", message: message, views: actual_views