Skip to content

Commit 0ecf5d0

Browse files
Set ENV["TESTOPTS"] with "-v" when verbose is called. Doing that -v and --verbose options will work as expected
1 parent 5c60da8 commit 0ecf5d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rake/file_utils_ext.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def #{name}(*args, **options, &block)
5353
def verbose(value=nil)
5454
oldvalue = FileUtilsExt.verbose_flag
5555
FileUtilsExt.verbose_flag = value unless value.nil?
56+
ENV["TESTOPTS"] = "-v" if value
5657
if block_given?
5758
begin
5859
yield

0 commit comments

Comments
 (0)