This commit is contained in:
r888888888
2015-05-21 12:57:10 -07:00
parent 622f12cfec
commit 555f960067
2 changed files with 32 additions and 5 deletions

View File

@@ -99,6 +99,19 @@ class TagAliasTest < ActiveSupport::TestCase
@alias = FactoryGirl.create(:tag_alias, :antecedent_name => "aaa", :consequent_name => "bbb", :forum_topic => @topic)
end
context "and conflicting wiki pages" do
setup do
@wiki1 = FactoryGirl.create(:wiki_page, :title => "aaa")
@wiki2 = FactoryGirl.create(:wiki_page, :title => "bbb")
end
should "update the topic when processed" do
assert_difference("ForumPost.count") do
@alias.rename_wiki_and_artist
end
end
end
should "update the topic when processed" do
assert_difference("ForumPost.count") do
@alias.process!