Commit 54127654de54dd1d72e9463d99185f4a3a90553f
1 parent
b8070448
Exists in
master
and in
9 other branches
removing helper that can be simulated by Rails core assertions
Showing
2 changed files
with
1 additions
and
5 deletions
Show diff stats
test/test_helper.rb
@@ -97,10 +97,6 @@ class ActiveSupport::TestCase | @@ -97,10 +97,6 @@ class ActiveSupport::TestCase | ||
97 | assert !object.errors[attribute.to_s].present? | 97 | assert !object.errors[attribute.to_s].present? |
98 | end | 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 | # this check only if text has html tag | 100 | # this check only if text has html tag |
105 | def assert_sanitized(text) | 101 | def assert_sanitized(text) |
106 | assert !text.index('<'), "Text '#{text}' expected to be sanitized" | 102 | assert !text.index('<'), "Text '#{text}' expected to be sanitized" |
test/unit/tiny_mce_article_test.rb
@@ -11,7 +11,7 @@ class TinyMceArticleTest < ActiveSupport::TestCase | @@ -11,7 +11,7 @@ class TinyMceArticleTest < ActiveSupport::TestCase | ||
11 | 11 | ||
12 | # this test can be removed when we get real tests for TinyMceArticle | 12 | # this test can be removed when we get real tests for TinyMceArticle |
13 | should 'be an article' do | 13 | should 'be an article' do |
14 | - assert_subclass TextArticle, TinyMceArticle | 14 | + assert_kind_of TextArticle, TinyMceArticle.new |
15 | end | 15 | end |
16 | 16 | ||
17 | should 'define description' do | 17 | should 'define description' do |