# encoding: UTF-8 require_relative "./test_helper" if ENV["RUN_INTEROPERABILITY_TESTS"] class HTMLEntities::InteroperabilityTest < Test::Unit::TestCase def test_should_encode_active_support_safe_buffer require 'active_support' string = "
This is a test
" buffer = ActiveSupport::SafeBuffer.new(string) coder = HTMLEntities.new assert_equal coder.encode(string, :named), coder.encode(buffer, :named) end end end