diff options
author | Benoit Daloze <[email protected]> | 2022-09-28 18:37:17 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2022-09-28 18:37:17 +0200 |
commit | 31cf1bb5256314b69eae92673d3dd5815158ee91 (patch) | |
tree | 5ee049f751426794bfe47d0fa847f5621d3a039d /spec/ruby/spec_helper.rb | |
parent | 5a1ab740fc287df8bf4038f19bd28bbb73e181b6 (diff) |
Update to ruby/spec@1d9d5c6
Diffstat (limited to 'spec/ruby/spec_helper.rb')
-rw-r--r-- | spec/ruby/spec_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/spec_helper.rb b/spec/ruby/spec_helper.rb index f92d316c2a..3404521c03 100644 --- a/spec/ruby/spec_helper.rb +++ b/spec/ruby/spec_helper.rb @@ -27,7 +27,8 @@ unless ENV['MSPEC_RUNNER'] # Running directly with ruby some_spec.rb end end -ruby_version_is ""..."2.7" do +# Compare with SpecVersion directly here so it works even with --unguarded +if VersionGuard::FULL_RUBY_VERSION < SpecVersion.new('2.7') abort "This version of ruby/spec requires Ruby 2.7+" end |