require File.dirname(__FILE__) + '/../test_helper' class RawHTMLBlockTest < ActiveSupport::TestCase should 'describe itself' do assert_not_equal Block.description, RawHTMLBlock.description end should 'store HTML' do block = RawHTMLBlock.new(:html => 'HTML!') assert_equal 'HTML!', block.html end should 'not filter HTML' do html = '"' block = RawHTMLBlock.new(:html => html) assert_equal html, block.html end should 'return html as content' do block = RawHTMLBlock.new(:html => "HTML") assert_match(/HTML$/, block.content) end end