fix forum post test
This commit is contained in:
@@ -27,6 +27,10 @@ class ForumPostTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
context "that is deleted" do
|
||||
setup do
|
||||
CurrentUser.user = FactoryGirl.create(:moderator_user)
|
||||
end
|
||||
|
||||
should "update the topic's updated_at timestamp" do
|
||||
@topic.reload
|
||||
assert_equal(@posts[-1].updated_at.to_i, @topic.updated_at.to_i)
|
||||
|
||||
Reference in New Issue
Block a user