diff options
Diffstat (limited to 'spec/ruby/command_line/dash_w_spec.rb')
| -rw-r--r-- | spec/ruby/command_line/dash_w_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/ruby/command_line/dash_w_spec.rb b/spec/ruby/command_line/dash_w_spec.rb index bb038cb10c..f310dca3ed 100644 --- a/spec/ruby/command_line/dash_w_spec.rb +++ b/spec/ruby/command_line/dash_w_spec.rb @@ -1,6 +1,10 @@ -require File.expand_path('../../spec_helper', __FILE__) -require File.expand_path('../shared/verbose', __FILE__) +require_relative '../spec_helper' +require_relative 'shared/verbose' describe "The -w command line option" do it_behaves_like :command_line_verbose, "-w" + + it "enables both deprecated and experimental warnings" do + ruby_exe('p Warning[:deprecated]; p Warning[:experimental]', options: '-w').should == "true\ntrue\n" + end end |
