Skip to content

Commit

Permalink
Merge pull request #126 from ruby/fix-verbose-option
Browse files Browse the repository at this point in the history
Remove -W option on TestTask
  • Loading branch information
hsbt committed Mar 27, 2016
2 parents bd8dfea + 89d8c6e commit 23e5c29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions History.rdoc
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 0 additions & 1 deletion lib/rake/testtask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion test/test_rake_test_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 23e5c29

Please sign in to comment.