Sha256: 19b20e10525a6cf14d9ebce0c4c9bd4de91236a86b70c0bfdad3716babed5f0d
Contents?: true
Size: 1.11 KB
Versions: 8
Compression:
Stored size: 1.11 KB
Contents
require 'rails_helper' RSpec.feature 'Conversations' do include_context 'loaded site' 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' 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_conversation.messages.first.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
Version data entries
8 entries across 8 versions & 1 rubygems