Sha256: a1dcbe9a34f39a41253d13b9a48c73f39ff13ec356ca61b20bb34377292ec5c9
Contents?: true
Size: 1.44 KB
Versions: 11
Compression:
Stored size: 1.44 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.to_s 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.to_s click_link "mark_read_#{unread_message.id.to_s}" 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.to_s 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
11 entries across 11 versions & 1 rubygems