5322702b |
require "spec_helper"
describe "Chatting behaviour" do
subject { page }
it "should show account info" do
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
it "should show contact list" do
before { visit chat_path }
it { should have_selector('h1', 'Friends') }
it { should have_selector('h1', 'John Savage') }
it { should have_selector('h1', 'Adam Wolsky') }
end
end |