ref: master
test/unit/raw_html_article_test.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
require_relative "../test_helper" class RawHTMLArticleTest < ActiveSupport::TestCase def setup @profile = create_user('testing').person end should 'not filter HTML' do article = TextArticle.create!( :editor => Article::Editor::RAW_HTML, :name => 'Raw HTML', :body => '<strong>HTML!</strong><form action="#"></form>', :profile => @profile ) assert_equal '<strong>HTML!</strong><form action="#"></form>', article.body end end |