Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GCorbel committed Mar 4, 2024
1 parent 0ba2dcd commit 70b4503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/mocks/exclude_stubbed_classes_from_subclasses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Mocks
# @private
class ExcludeStubbedClassesFromSubclasses
def self.enable!
return if Class.method_defined?(:subclasses) # RUBY_VERSION >= "3.1"
return unless RUBY_VERSION >= "3.1"
return if Class.respond_to?(:subclasses_with_rspec_mocks)

require 'weakref'
Expand Down

0 comments on commit 70b4503

Please sign in to comment.