Skip to content

Commit

Permalink
Add nocov markings around use of erb/escape
Browse files Browse the repository at this point in the history
This will need to be adjusted after the switch to coverage testing
on Ruby 3.2 by default.
  • Loading branch information
jeremyevans committed Dec 22, 2022
1 parent 78f2da6 commit f96c0a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/erubi.rb
Expand Up @@ -19,7 +19,9 @@ module Erubi

begin
require 'erb/escape'
# :nocov:
define_singleton_method(:h, ERB::Escape.instance_method(:html_escape))
# :nocov:
rescue LoadError
begin
require 'cgi/escape'
Expand Down

0 comments on commit f96c0a1

Please sign in to comment.