Add functional tests for messages

Also fixes various issues in the code discovered while writing
the tests, and adds some named routes for messages.
This commit is contained in:
Tom Hughes 2012-03-22 22:58:57 +00:00
parent 5270a07bc5
commit eaad3611b8
7 changed files with 344 additions and 53 deletions

View file

@ -1,6 +1,6 @@
<h2><%= raw(t'message.outbox.my_inbox', :inbox_link => link_to(t('message.outbox.inbox'), inbox_path(@user.display_name))) %>/<%= t'message.outbox.outbox' %></h2>
<p><%= t'message.outbox.messages', :count => @user.sent_messages.size %>
<p><%= t'message.outbox.messages', :count => @user.sent_messages.size %></p>
<% if @user.sent_messages.size > 0 %>
<div id="messages">