Enable warnings when running tests
This PR enables rake's test task to opt into running the test suite with warnings, this is to avoid warnings sneaking into the library. Illustrative example: ``` % git diff diff --git a/lib/zeitwerk.rb b/lib/zeitwerk.rb index a1335d1..615d516 100644 --- a/lib/zeitwerk.rb +++ b/lib/zeitwerk.rb @@ -16,6 +16,7 @@ module Zeitwerk # @experimental # @sig () -> void def self.with_loader + a = 1 loader = Zeitwerk::Loader.new yield loader ensure % bundle exec rake /Users/teo/src/github.com/fxn/zeitwerk/lib/zeitwerk.rb:19: warning: assigned but unused variable - a ... output omitted ... ```
This commit is contained in:
parent
11600bc7ff
commit
a4d99c0ed8