raw_html_article_test.rb 452 Bytes
require File.dirname(__FILE__) + '/../test_helper'

class RawHTMLArticleTest < ActiveSupport::TestCase

  def setup
    @profile = create_user('testing').person
  end

  should 'not filter HTML' do
    article = RawHTMLArticle.create!(
      :name => 'Raw HTML',
      :body => '<strong>HTML!</strong><form action="#"></form>',
      :profile => @profile
    )
    assert_equal '<strong>HTML!</strong><form action="#"></form>', article.body
  end

end