Skip to content

Commit

Permalink
Remove redundant method overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain authored and bbatsov committed May 20, 2024
1 parent e76ccad commit 9e2ab40
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,3 @@
# Prism supports Ruby 3.3+ parsing.
config.filter_run_excluding unsupported_on: :prism if ENV['PARSER_ENGINE'] == 'parser_prism'
end

module ::RSpec
module Core
class ExampleGroup
# Override `failure_count` from test-queue to prevent RSpec deprecation notice
# Treating `metadata[:execution_result]` as a hash is deprecated.
def self.failure_count
examples.map { |e| e.execution_result.status == 'failed' }.length
end
end
end
end

0 comments on commit 9e2ab40

Please sign in to comment.