Skip to content

Commit 9ce3690

Browse files
committed
Allow devs to opt out of test warnings
1 parent 61412d8 commit 9ce3690

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ Rake::TestTask.new do |t|
4343
t.libs << 'test'
4444
t.libs << 'lib'
4545
t.test_files = FileList['test/**/*_test.rb']
46-
t.ruby_opts = ['-w -r./test/test_helper.rb']
46+
t.ruby_opts = ['-r./test/test_helper.rb']
47+
t.ruby_opts << ' -w' unless ENV['NO_WARN'] == 'true'
4748
t.verbose = true
4849
end
4950

0 commit comments

Comments
 (0)