From 89d8c6ee0142244c6c0bd1f1e481aff64291b217 Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Sun, 27 Mar 2016 21:34:48 +0900 Subject: [PATCH] Remove -W option. It's unexpected change from Rake 10 --- History.rdoc | 7 +++++++ lib/rake/testtask.rb | 1 - test/test_rake_test_task.rb | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/History.rdoc b/History.rdoc index a067fef5c..a0be0546b 100644 --- a/History.rdoc +++ b/History.rdoc @@ -1,3 +1,10 @@ +=== 11.1.2 / 2016-03-28 + +Bug fixes: + +* Remove `-W` option when Rake::TestTask#verbose enabled. It's misunderstanding + specification change with Rake 11. Partly revert #67 + === 11.1.1 / 2016-03-14 Bug fixes: diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb index 231093be8..4e048d37e 100644 --- a/lib/rake/testtask.rb +++ b/lib/rake/testtask.rb @@ -128,7 +128,6 @@ def ruby_opts_string # :nodoc: opts = @ruby_opts.dup opts.unshift("-I\"#{lib_path}\"") unless @libs.empty? opts.unshift("-w") if @warning - opts.unshift('-W') if @verbose opts.join(" ") end diff --git a/test/test_rake_test_task.rb b/test/test_rake_test_task.rb index e8c767d00..bb4d43c96 100644 --- a/test/test_rake_test_task.rb +++ b/test/test_rake_test_task.rb @@ -31,7 +31,6 @@ def test_initialize_override assert_equal true, tt.warning assert_equal true, tt.verbose assert_match(/-w/, tt.ruby_opts_string) - assert_match(/-W/, tt.ruby_opts_string) assert Task.task_defined?(:example) end