Sha256: 38b1e35989ecc200d693b97dedd9fc4692a1e7f1a492f2b53fe752ec6a8d14e0

Contents?: true

Size: 262 Bytes

Versions: 4

Compression:

Stored size: 262 Bytes

Contents

module HTMLEscapeHelper
  def translated_string(key)
    if [7.0].include?(Rails::VERSION::STRING.to_f)
      ERB::Util.html_escape_once(I18n.t(key))
    else
      I18n.t(key)
    end
  end
end

RSpec.configure do |config|
  config.include HTMLEscapeHelper
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clearance-2.9.3 spec/support/html_escape_helper.rb
clearance-2.9.2 spec/support/html_escape_helper.rb
clearance-2.9.1 spec/support/html_escape_helper.rb
clearance-2.9.0 spec/support/html_escape_helper.rb