Skip to content

Commit ae273cb

Browse files
luke-gruhsbt
authored andcommitted
silence warnings during execution of rake tasks in Rakefile (ex: rake test)
1 parent 15e936c commit ae273cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Rakefile

+3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ lib = File.expand_path("../lib", __FILE__)
1010
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
1111

1212
begin
13+
old_verbose, $VERBOSE = $VERBOSE, nil
1314
require "bundler/gem_tasks"
1415
rescue LoadError
16+
ensure
17+
$VERBOSE = old_verbose
1518
end
1619

1720
require "rake/testtask"

0 commit comments

Comments
 (0)