Commit 54127654de54dd1d72e9463d99185f4a3a90553f

Authored by Joenio Costa
1 parent b8070448

removing helper that can be simulated by Rails core assertions

test/test_helper.rb
... ... @@ -97,10 +97,6 @@ class ActiveSupport::TestCase
97 97 assert !object.errors[attribute.to_s].present?
98 98 end
99 99  
100   - def assert_subclass(parent, child)
101   - assert_equal parent, child.superclass, "Class #{child} expected to be a subclass of #{parent}"
102   - end
103   -
104 100 # this check only if text has html tag
105 101 def assert_sanitized(text)
106 102 assert !text.index('<'), "Text '#{text}' expected to be sanitized"
... ...
test/unit/tiny_mce_article_test.rb
... ... @@ -11,7 +11,7 @@ class TinyMceArticleTest &lt; ActiveSupport::TestCase
11 11  
12 12 # this test can be removed when we get real tests for TinyMceArticle
13 13 should 'be an article' do
14   - assert_subclass TextArticle, TinyMceArticle
  14 + assert_kind_of TextArticle, TinyMceArticle.new
15 15 end
16 16  
17 17 should 'define description' do
... ...