Sha256: 61a93227c68af5e5c5a66a118b57a0431ecdbbca14ed2f6b0d05538a7ee1b25a

Contents?: true

Size: 502 Bytes

Versions: 42

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

# Rake 11+ has a misfeature where @warning = true by default
# See https://github.com/ruby/rake/pull/97/files
# This causes all tests to be run with `ruby -w`, causing a huge number of warnings
# from gems we don't control and overwhelming our test output.
# This patch reverts that.

_ = Rake::TestTask

class Rake::TestTask
  module SetWarningFalseMixin
    def initialize(*args)
      super
      self.warning = false
    end
  end

  prepend SetWarningFalseMixin
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
exception_handling-3.1.1 spec/rake_test_warning_false.rb
exception_handling-3.1.1.pre.tstarck.1 spec/rake_test_warning_false.rb
exception_handling-3.1.0 spec/rake_test_warning_false.rb
exception_handling-3.1.0.pre.3 spec/rake_test_warning_false.rb
exception_handling-3.0.1 spec/rake_test_warning_false.rb
exception_handling-3.1.0.pre.2 spec/rake_test_warning_false.rb
exception_handling-3.1.0.pre.tstarck.2 spec/rake_test_warning_false.rb
exception_handling-3.1.0.pre.tstarck.1 spec/rake_test_warning_false.rb
exception_handling-3.0.0 spec/rake_test_warning_false.rb
exception_handling-3.0.0.pre.2 spec/rake_test_warning_false.rb
exception_handling-2.17.0.pre.tstarck.1 spec/rake_test_warning_false.rb
exception_handling-2.16.0 spec/rake_test_warning_false.rb
exception_handling-2.15.0 spec/rake_test_warning_false.rb
exception_handling-2.14.0 spec/rake_test_warning_false.rb
exception_handling-2.14.0.pre.gk.1 spec/rake_test_warning_false.rb
exception_handling-2.14.0.pre.gk.0 spec/rake_test_warning_false.rb
exception_handling-2.13.0 spec/rake_test_warning_false.rb
exception_handling-2.13.0.pre.dc.0 spec/rake_test_warning_false.rb
exception_handling-2.12.0 spec/rake_test_warning_false.rb
exception_handling-2.12.0.gfaza.1 spec/rake_test_warning_false.rb