Skip to content

Commit 9ce0bc3

Browse files
authored
Ignore frozen string warning in latest ruby (#192)
1 parent 6d4e0ba commit 9ce0bc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/spec_helper.rb

+5
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@
4040
:raise
4141
end
4242

43+
# https://github.com/kachick/rspec-matchers-power_assert_matchers/issues/191
44+
# https://github.com/ruby/ruby/blob/e5b585ba908d371c67d97988795a5e40ec2f9e93/lib/prettyprint.rb#L184
45+
require 'prettyprint'
46+
Warning.ignore(/literal string will be frozen in the future/, PrettyPrint.instance_method(:text).source_location.first)
47+
4348
require_relative '../lib/rspec/matchers/power_assert_matchers'

0 commit comments

Comments
 (0)