Sha256: 22d2f49b9452bfab858a58a0d8506c03891c9095349597d4c0495724f520981a
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true require "abstract_unit" class OutputEscapingTest < ActiveSupport::TestCase test "escape_html shouldn't die when passed nil" do assert 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | actionpack/test/controller/output_escaping_test.rb |