summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-12-16 04:20:17 +0000
committerGo MAEDA <maeda@farend.jp>2018-12-16 04:20:17 +0000
commitc702b6275c20cb882dd6ca5d863d6c95498763db (patch)
tree38f7dcb57e302f1d551f3ba55c5a054de9d9d368 /test
parent3a1d5b94d9712fe88b10c187492a3b034c61b0d0 (diff)
downloadredmine-c702b6275c20cb882dd6ca5d863d6c95498763db.tar.gz
redmine-c702b6275c20cb882dd6ca5d863d6c95498763db.zip
Merged r17738 from trunk to 4.0-stable (#2635).
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17740 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/messages_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index b129cdd33..715258fe1 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -129,6 +129,7 @@ class MessagesControllerTest < Redmine::ControllerTest
}
}
end
+ assert_equal I18n.t(:notice_successful_create), flash[:notice]
message = Message.find_by_subject('Test created message')
assert_not_nil message
assert_redirected_to "/boards/1/topics/#{message.to_param}"
@@ -171,6 +172,7 @@ class MessagesControllerTest < Redmine::ControllerTest
}
}
assert_redirected_to '/boards/1/topics/1'
+ assert_equal I18n.t(:notice_successful_update), flash[:notice]
message = Message.find(1)
assert_equal 'New subject', message.subject
assert_equal 'New body', message.content
@@ -189,6 +191,7 @@ class MessagesControllerTest < Redmine::ControllerTest
}
}
assert_redirected_to '/boards/1/topics/1'
+ assert_equal I18n.t(:notice_successful_update), flash[:notice]
message = Message.find(1)
assert_equal true, message.sticky?
assert_equal true, message.locked?
@@ -222,6 +225,7 @@ class MessagesControllerTest < Redmine::ControllerTest
}
reply = Message.order('id DESC').first
assert_redirected_to "/boards/1/topics/1?r=#{reply.id}"
+ assert_equal I18n.t(:notice_successful_update), flash[:notice]
assert Message.find_by_subject('Test reply')
end
@@ -234,6 +238,7 @@ class MessagesControllerTest < Redmine::ControllerTest
}
end
assert_redirected_to '/projects/ecookbook/boards/1'
+ assert_equal I18n.t(:notice_successful_delete), flash[:notice]
assert_nil Message.find_by_id(1)
end
@@ -246,6 +251,7 @@ class MessagesControllerTest < Redmine::ControllerTest
}
end
assert_redirected_to '/boards/1/topics/1?r=2'
+ assert_equal I18n.t(:notice_successful_delete), flash[:notice]
assert_nil Message.find_by_id(2)
end