2017-05-07 12:04:49 +00:00
|
|
|
require File.expand_path('../../spec_helper', __FILE__)
|
|
|
|
require File.expand_path('../shared/verbose', __FILE__)
|
|
|
|
|
|
|
|
describe "The -v command line option" do
|
|
|
|
it_behaves_like :command_line_verbose, "-v"
|
2017-09-14 15:56:33 +00:00
|
|
|
|
|
|
|
describe "when used alone" do
|
|
|
|
it "prints version and ends" do
|
2017-09-28 09:19:59 +00:00
|
|
|
ruby_exe(nil, args: '-v').include?(RUBY_DESCRIPTION).should == true
|
2017-09-14 15:56:33 +00:00
|
|
|
end
|
|
|
|
end
|
2017-05-07 12:04:49 +00:00
|
|
|
end
|