Sha256: 9b2ff59c008977adfd9973861be3a2038ec7155e840e261b7ea09e01071ce907
Contents?: true
Size: 444 Bytes
Versions: 47
Compression:
Stored size: 444 Bytes
Contents
# frozen_string_literal: true require "abstract_unit" class OutputEscapingTest < ActiveSupport::TestCase test "escape_html shouldn't die when passed nil" do assert_predicate ERB::Util.h(nil), :blank? end test "escapeHTML should escape strings" do assert_equal "<>"", ERB::Util.h("<>\"") end test "escapeHTML shouldn't touch explicitly safe strings" do assert_equal "<", ERB::Util.h("<".html_safe) end end
Version data entries
47 entries across 47 versions & 1 rubygems