Skip to content

Commit

Permalink
Ignore frozen string warning in latest ruby (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick authored May 1, 2024
1 parent 6d4e0ba commit 9ce0bc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@
:raise
end

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

require_relative '../lib/rspec/matchers/power_assert_matchers'

0 comments on commit 9ce0bc3

Please sign in to comment.