5322702b |
require "spec_helper"
describe "Chatting behaviour" do
subject { page }
|
1ec65f29 |
describe "should show account info" do |
5322702b |
before { visit chat_path }
it { should have_selector('h1', text: 'Cinan Rakosnik') }
it { should have_selector('h2', text: 'frontend developer') }
it { should have_selector('h3', text: 'available') }
end
|
1ec65f29 |
describe "should show contact list" do |
5322702b |
before { visit chat_path }
it { should have_selector('h1', 'Friends') } |
1ec65f29 |
|
5322702b |
it { should have_selector('h1', 'John Savage') }
it { should have_selector('h1', 'Adam Wolsky') }
end
end |