Skip to content

Commit

Permalink
refactor: avoid using activesupport's present? method
Browse files Browse the repository at this point in the history
  • Loading branch information
ngarbezza committed Apr 15, 2024
1 parent bd7027e commit 301fa4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test_prof/before_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run(scope, metadata)
private

def filters_apply?(metadata)
return true unless filters.present? && TestProf.rspec?
return true unless filters.is_a?(Hash) && TestProf.rspec?

::RSpec::Core::MetadataFilter.apply?(
:all?,
Expand Down

0 comments on commit 301fa4f

Please sign in to comment.