Sha256: b36931b759cfa2d0a1da6e69ec9e2442bf535ce0d03dab47d9014d75c014d351
Contents?: true
Size: 348 Bytes
Versions: 2
Compression:
Stored size: 348 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class ReplaceRailsUserInput < ActiveSupport::TestCase test "tainted_love_tags are copied to html_safe string" do tag = { source: 'something' } input = TaintedLove.tag('user input', tag) input_safe = input.html_safe assert_equal([tag], input_safe.tainted_love_tags) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tainted_love-0.4.1 | tests/rails/test/replacers/replace_rails_user_input_test.rb |
tainted_love-0.4.0 | tests/rails/test/replacers/replace_rails_user_input_test.rb |