diff options
author | Benoit Daloze <eregontp@gmail.com> | 2022-06-26 14:50:14 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2022-06-26 14:50:14 +0200 |
commit | d3d5ef0cca160fca538c7f556c5a6e08df5847e6 (patch) | |
tree | 57358b4b9cdd6f429d0383005ac393cb74dd3bff /spec/ruby/spec_helper.rb | |
parent | f616e816372d14e605879d2e43c7fbdda29ef837 (diff) | |
download | ruby-d3d5ef0cca160fca538c7f556c5a6e08df5847e6.tar.gz |
Update to ruby/spec@ab32a1a
Diffstat (limited to 'spec/ruby/spec_helper.rb')
-rw-r--r-- | spec/ruby/spec_helper.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/ruby/spec_helper.rb b/spec/ruby/spec_helper.rb index c38965d3c5..f92d316c2a 100644 --- a/spec/ruby/spec_helper.rb +++ b/spec/ruby/spec_helper.rb @@ -14,8 +14,7 @@ else end end -# Running directly with ruby some_spec.rb -unless ENV['MSPEC_RUNNER'] +unless ENV['MSPEC_RUNNER'] # Running directly with ruby some_spec.rb mspec_lib = File.expand_path("../../mspec/lib", __FILE__) $LOAD_PATH << mspec_lib if File.directory?(mspec_lib) @@ -26,7 +25,13 @@ unless ENV['MSPEC_RUNNER'] puts "Please add -Ipath/to/mspec/lib or clone mspec as a sibling to run the specs." exit 1 end +end + +ruby_version_is ""..."2.7" do + abort "This version of ruby/spec requires Ruby 2.7+" +end +unless ENV['MSPEC_RUNNER'] # Running directly with ruby some_spec.rb ARGV.unshift $0 MSpecRun.main end |