spec/gem_helper.rb in regexp-examples-1.5.0 vs spec/gem_helper.rb in regexp-examples-1.5.1

- old
+ new

@@ -4,16 +4,17 @@ Coveralls.wear! require './lib/regexp-examples.rb' require 'helpers' require 'pry' +require 'warning' # Several of these tests (intentionally) use "weird" regex patterns, # that spam annoying warnings when running. # E.g. warning: invalid back reference: /\k/ # and warning: character class has ']' without escape: /[]]/ # This config disables those warnings. -$VERBOSE = nil +Warning.ignore(//, __dir__) RSpec.configure do |config| config.include Helpers end