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-10-20 23:44:20 -04:00
|
|
|
end unless defined?(YJIT) && YJIT.enabled? # pending. not sure why MJIT doesn't need anything to fix this.
|
2017-09-14 11:56:33 -04:00
|
|
|
end
|
2017-05-07 08:04:49 -04:00
|
|
|
end
|