fix conversations cuke
This commit is contained in:
parent
b582f45452
commit
7ccc81b0a4
2 changed files with 11 additions and 11 deletions
|
|
@ -20,18 +20,18 @@
|
||||||
= t('.inbox')
|
= t('.inbox')
|
||||||
|
|
||||||
#conversation_inbox
|
#conversation_inbox
|
||||||
- if @conversations.count > 0
|
.stream.conversations
|
||||||
.stream.conversations
|
- if @conversations.count > 0
|
||||||
= render :partial => 'conversations/conversation', :collection => @conversations, :locals => {:authors => @authors, :unread_counts => @unread_counts}
|
= render :partial => 'conversations/conversation', :collection => @conversations, :locals => {:authors => @authors, :unread_counts => @unread_counts}
|
||||||
|
- else
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
%div{:style => 'text-align:center;'}
|
||||||
|
%i
|
||||||
|
= t('.no_messages')
|
||||||
= will_paginate @conversations
|
= will_paginate @conversations
|
||||||
- else
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
%div{:style => 'text-align:center;'}
|
|
||||||
%i
|
|
||||||
= t('.no_messages')
|
|
||||||
|
|
||||||
|
|
||||||
.span-15.prepend-9.last
|
.span-15.prepend-9.last
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ Then /^I send a message with subject "([^"]*)" and text "([^"]*)" to "([^"]*)"$/
|
||||||
step %(I am on the conversations page)
|
step %(I am on the conversations page)
|
||||||
step %(I follow "New Message")
|
step %(I follow "New Message")
|
||||||
step %(I wait for the ajax to finish)
|
step %(I wait for the ajax to finish)
|
||||||
|
step %(I fill in "contact_autocomplete" with "#{person}" in the modal window)
|
||||||
step %(I press the first ".as-result-item" within ".as-results" in the modal window)
|
step %(I press the first ".as-result-item" within ".as-results" in the modal window)
|
||||||
step %(I fill in "conversation_subject" with "#{subject}" in the modal window)
|
step %(I fill in "conversation_subject" with "#{subject}" in the modal window)
|
||||||
step %(I fill in "conversation_text" with "#{text}" in the modal window)
|
step %(I fill in "conversation_text" with "#{text}" in the modal window)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue