aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/command_line/dash_v_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/command_line/dash_v_spec.rb')
-rw-r--r--spec/ruby/command_line/dash_v_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/ruby/command_line/dash_v_spec.rb b/spec/ruby/command_line/dash_v_spec.rb
new file mode 100644
index 0000000000..a7abd9de82
--- /dev/null
+++ b/spec/ruby/command_line/dash_v_spec.rb
@@ -0,0 +1,13 @@
+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"
+
+ 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