summaryrefslogtreecommitdiffstats
path: root/test/unit/wiki_page_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/wiki_page_test.rb')
-rw-r--r--test/unit/wiki_page_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb
index 5c49c9854..607718e2c 100644
--- a/test/unit/wiki_page_test.rb
+++ b/test/unit/wiki_page_test.rb
@@ -85,18 +85,18 @@ class WikiPageTest < ActiveSupport::TestCase
# A page that doesn't exist
page.parent_title = 'Unknown title'
assert !page.save
- assert_equal I18n.translate('activerecord.errors.messages.invalid'),
- page.errors[:parent_title].to_s
+ assert_include I18n.translate('activerecord.errors.messages.invalid'),
+ page.errors[:parent_title]
# A child page
page.parent_title = 'Page_with_an_inline_image'
assert !page.save
- assert_equal I18n.translate('activerecord.errors.messages.circular_dependency'),
- page.errors[:parent_title].to_s
+ assert_include I18n.translate('activerecord.errors.messages.circular_dependency'),
+ page.errors[:parent_title]
# The page itself
page.parent_title = 'CookBook_documentation'
assert !page.save
- assert_equal I18n.translate('activerecord.errors.messages.circular_dependency'),
- page.errors[:parent_title].to_s
+ assert_include I18n.translate('activerecord.errors.messages.circular_dependency'),
+ page.errors[:parent_title]
page.parent_title = 'Another_page'
assert page.save
end