Allow devs to opt out of test warnings

This commit is contained in:
Benjamin Fleischer 2016-03-16 23:51:53 -05:00
parent 61412d80ca
commit 408daae045

View File

@ -43,7 +43,8 @@ Rake::TestTask.new do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/*_test.rb']
t.ruby_opts = ['-w -r./test/test_helper.rb']
t.ruby_opts = ['-r./test/test_helper.rb']
t.ruby_opts << ' -w' unless ENV['NO_WARN'] == 'true'
t.verbose = true
end