diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Mar 15 04:36:41 2016 Charles Oliver Nutter <headius@headius.com> + + * test/ruby/test_rubyoptions.rb (test_disable): add tests for + --disable-gems and --disable-did_you_mean. + Tue Mar 15 03:35:04 2016 Eric Hodel <drbrain@segment7.net> * marshal.c (r_object0): Fix Marshal crash for corrupt extended object. diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 765af9d807..ba23604bb6 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -128,6 +128,8 @@ class TestRubyOptions < Test::Unit::TestCase assert_in_out_err(%w(--disable foobarbazqux -e) + [""], "", [], /unknown argument for --disable: `foobarbazqux'/) assert_in_out_err(%w(--disable), "", [], /missing argument for --disable/) + assert_in_out_err(%w(--disable-gems -e) + ['p defined? Gem'], "", ["nil"], []) + assert_in_out_err(%w(--disable-did_you_mean -e) + ['p defined? DidYouMean'], "", ["nil"], []) end def test_kanji |