summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line/dash_v_spec.rb
blob: 89cef6c3bdcbcde143f2d365388e8a6d5bf8a363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require_relative '../spec_helper'
require_relative 'shared/verbose'

describe "The -v command line option" do
  it_behaves_like :command_line_verbose, "-v"

  describe "when used alone" do
    it "prints version and ends" do
      ruby_exe(nil, args: '-v').should include(RUBY_DESCRIPTION)
    end unless defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled? # pending. not sure why MJIT doesn't need anything to fix this.
  end
end