require 'abstract_unit' class SafeBufferTest < ActiveSupport::TestCase def setup @buffer = ActiveSupport::SafeBuffer.new end test "Should look like a string" do assert @buffer.is_a?(String) assert_equal "", @buffer end test "Should not escape a raw string unless using rails_xss" do @buffer << "