Sha256: 8ee601d85b691169a04bd64a3c87499ab622775b2a7f8d0391f18202e71c4fa9
Contents?: true
Size: 1.56 KB
Versions: 24
Compression:
Stored size: 1.56 KB
Contents
require 'rails_helper' RSpec.feature 'Conversations' do include_context 'loaded site' it_behaves_like 'an authenticated section', '/box/in/conversations/1' describe 'When logged in' do before do login_as first_user end describe 'Showing' do describe 'at /box/in/conversations/:id' do before do visit "/box/in/conversations/#{unread_conversation.id}" end it_behaves_like( 'a bootstrap page showing an item', MessageTrain::Conversation, 'Unread Conversation' ) describe 'shows a reply link' do before do click_link 'Reply' end it_behaves_like 'a bootstrap page', title: 'Reply' end end end describe 'Marking', js: true do describe 'at /box/in/conversations/:id' do describe 'Marking Read' do before do visit "/box/in/conversations/#{unread_conversation.id}" click_link "mark_read_#{unread_message.id}" end it_behaves_like( 'a bootstrap page with an alert', 'info', 'Update successful' ) end describe 'Marking Ignored' do before do visit "/box/in/conversations/#{unread_conversation.id}" accept_confirm do click_link 'Mark as Ignored' end end it_behaves_like( 'a bootstrap page with an alert', 'info', 'Update successful' ) end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems