From 034a99f914e0d064391136be94991ef5232e284d Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 23 Feb 2015 21:07:29 -0300 Subject: [PATCH] tiny_mce: remove tests not valid after update --- test/unit/tiny_mce_article_test.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test/unit/tiny_mce_article_test.rb b/test/unit/tiny_mce_article_test.rb index b7c3152..96537c1 100644 --- a/test/unit/tiny_mce_article_test.rb +++ b/test/unit/tiny_mce_article_test.rb @@ -9,7 +9,7 @@ class TinyMceArticleTest < ActiveSupport::TestCase end attr_reader :profile - # this test can be removed when we get real tests for TinyMceArticle + # this test can be removed when we get real tests for TinyMceArticle should 'be an article' do assert_subclass TextArticle, TinyMceArticle end @@ -44,11 +44,6 @@ class TinyMceArticleTest < ActiveSupport::TestCase assert(article.body.is_utf8?, "%s expected to be valid UTF-8 content" % article.body.inspect) end - should 'fix tinymce mess with itheora comments for IE from tiny mce article body' do - article = create(TinyMceArticle, :profile => profile, :name => 'article', :abstract => 'abstract', :body => "the just for ie... ") - assert_equal "the just for ie... ", article.body.html_safe - end - should 'remove iframe if it is not from a trusted site' do article = create(TinyMceArticle, :profile => profile, :name => 'article', :abstract => 'abstract', :body => "") assert_equal "", article.body @@ -94,12 +89,6 @@ class TinyMceArticleTest < ActiveSupport::TestCase assert_equal '', article.body end - #TinymMCE convert config={"key":(.*)} in config={"key":(.*)} - should 'not replace " with &quot; when adding an Archive.org video' do - article = create(TinyMceArticle, :profile => profile, :name => 'article', :abstract => 'abstract', :body => " ") - assert_equal " ", article.body - end - should 'not sanitize html comments' do article = TinyMceArticle.new article.body = '

Wellformed html code

' -- libgit2 0.21.2