Sha256: d46a1778e149052da58946efe67361be97e5fc644aa8796b94c1cd22751e5d9a
Contents?: true
Size: 431 Bytes
Versions: 40
Compression:
Stored size: 431 Bytes
Contents
require 'abstract_unit' require 'testing_sandbox' class RawOutputHelperTest < ActionView::TestCase tests ActionView::Helpers::RawOutputHelper include TestingSandbox def setup @string = "hello" end test "raw returns the safe string" do result = raw(@string) assert_equal @string, result assert result.html_safe? end test "raw handles nil values correctly" do assert_equal "", raw(nil) end end
Version data entries
40 entries across 40 versions & 10 rubygems