block_helper_test.rb
333 Bytes
require File.dirname(__FILE__) + '/../test_helper'
class BlogHelperTest < ActiveSupport::TestCase
include BlockHelper
include ActionView::Helpers::TagHelper
should 'escape title html' do
assert_no_match /<b>/, block_title('<b>test</b>')
assert_match /<b>test<\/b>/, block_title('<b>test</b>')
end
end