2018-03-04 10:09:32 -05:00
|
|
|
require_relative '../spec_helper'
|
|
|
|
require_relative 'shared/verbose'
|
2017-05-07 08:04:49 -04:00
|
|
|
|
|
|
|
describe "The -v command line option" do
|
|
|
|
it_behaves_like :command_line_verbose, "-v"
|
2017-09-14 11:56:33 -04:00
|
|
|
|
|
|
|
describe "when used alone" do
|
|
|
|
it "prints version and ends" do
|
2018-10-09 02:18:28 -04:00
|
|
|
ruby_exe(nil, args: '-v').should include(RUBY_DESCRIPTION)
|
2021-12-18 11:05:17 -05:00
|
|
|
end unless (defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?) ||
|
|
|
|
(defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?)
|
2017-09-14 11:56:33 -04:00
|
|
|
end
|
2017-05-07 08:04:49 -04:00
|
|
|
end
|