require 'rails_helper'

feature 'Authenticated user can sign out', '
  In order to end session as uauthenticateted user I`d like
  to be able to sign out
' do
  given(:user) { create(:user) }

  background { sign_in(user) }

  scenario 'Registered user tries to sign out' do
    click_on 'Sign out'
    expect(page).to have_content 'Signed out successfully.'
  end
end
