diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f2843e1ae4f..4a80d10536d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -900,7 +900,15 @@ RSpec.configure do |config| end def skip_if_prepended_class_method_stubs_broken - skip("stubbing prepended class methods is broken in this version of ruby") if %w{2.4.6 2.5.1 2.5.3 2.6.0 2.6.2}.include?(RUBY_VERSION) + versions = [ + '2.4.6', + '2.4.9', + '2.5.1', + '2.5.3', + '2.6.0', + '2.6.2' + ] + skip("stubbing prepended class methods is broken in this version of ruby") if versions.include?(RUBY_VERSION) end end