Skip to content

Commit

Permalink
Avoid evaluating unused if running only subset
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 9, 2024
1 parent 6ef50b6 commit ae8df0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/support/fake_analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def browser_attributes
end

c.after(:all) do |ex|
next if c.world.all_examples.count != c.world.example_count

groups.group_by(&:first).each do |group, pairs|
allowed_extra_analytics = group.metadata[:allowed_extra_analytics]
next if allowed_extra_analytics.blank?
Expand Down

0 comments on commit ae8df0a

Please sign in to comment.