Skip to content

Commit a644c80

Browse files
authored
Merge pull request #483 from luke-gru/fix_test_warnings
silence warnings during execution of rake tasks in Rakefile (ex: rake test)
2 parents df25fb1 + 2465ea5 commit a644c80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Rakefile

Lines changed: 3 additions & 0 deletions
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)