summaryrefslogtreecommitdiff
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.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/ruby/command_line/dash_v_spec.rb b/spec/ruby/command_line/dash_v_spec.rb
index a7abd9de82..2ee9099419 100644
--- a/spec/ruby/command_line/dash_v_spec.rb
+++ b/spec/ruby/command_line/dash_v_spec.rb
@@ -6,8 +6,7 @@ describe "The -v command line option" do
describe "when used alone" do
it "prints version and ends" do
- version = ruby_exe(nil, args: '--version')
- ruby_exe(nil, args: '-v').should == version
+ ruby_exe(nil, args: '-v').include?(RUBY_DESCRIPTION).should == true
end
end
end