diff options
Diffstat (limited to 'spec/rubyspec/command_line/dash_v_spec.rb')
-rw-r--r-- | spec/rubyspec/command_line/dash_v_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/rubyspec/command_line/dash_v_spec.rb b/spec/rubyspec/command_line/dash_v_spec.rb index f690d7baf1..a7abd9de82 100644 --- a/spec/rubyspec/command_line/dash_v_spec.rb +++ b/spec/rubyspec/command_line/dash_v_spec.rb @@ -3,4 +3,11 @@ require File.expand_path('../shared/verbose', __FILE__) 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 + version = ruby_exe(nil, args: '--version') + ruby_exe(nil, args: '-v').should == version + end + end end |