code layout clean up of test/unit/message_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7553 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-01 01:10:18 +00:00
parent 70a83bd47c
commit d817b063ec
1 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,9 @@ class MessageTest < ActiveSupport::TestCase
topics_count = @board.topics_count
messages_count = @board.messages_count
message = Message.new(:board => @board, :subject => 'Test message', :content => 'Test message content', :author => @user)
message = Message.new(:board => @board, :subject => 'Test message',
:content => 'Test message content',
:author => @user)
assert message.save
@board.reload
# topics count incremented
@ -48,7 +50,9 @@ class MessageTest < ActiveSupport::TestCase
replies_count = @message.replies_count
reply_author = User.find(2)
reply = Message.new(:board => @board, :subject => 'Test reply', :content => 'Test reply content', :parent => @message, :author => reply_author)
reply = Message.new(:board => @board, :subject => 'Test reply',
:content => 'Test reply content',
:parent => @message, :author => reply_author)
assert reply.save
@board.reload
# same topics count