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 6103701
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 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,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(
"%<message>s available views are %<views>p",
message: message, views: actual_views
Expand Down

0 comments on commit 6103701

Please sign in to comment.