Skip to content

Commit

Permalink
Fix rubocop violation
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Nov 6, 2023
1 parent b587ce5 commit 98bdb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/consent/lib/consent/rspec/consent_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def failure_message_base(failure) # rubocop:disable Metrics/MethodLength
)
else
actual_views = Consent.find_subjects(@subject_key)
.map(&:views)
.map(&:keys).flatten
.map { |subject| subject.views }
.flat_map { |views| views.keys }
format(
"%<message>s available views are %<views>p",
message: message, views: actual_views
Expand Down

0 comments on commit 98bdb5f

Please sign in to comment.