Sha256: 216a3a901944b7f9f7f0ec51dc5a4ee0734213da692db9bb57ac0ab4466ab940
Contents?: true
Size: 627 Bytes
Versions: 18
Compression:
Stored size: 627 Bytes
Contents
require "spec_helper" feature 'Accounts index' do context 'logged in users' do scenario 'after sign in it should redirect to accounts page' do account = create :account sign_in account.owner, attributes_for(:user)[:password] expect(page.current_url).to match(/#{mtdevise.accounts_path}/) expect(page).to have_text(account.name) end end context 'guests users' do scenario 'should not let them in' do visit mtdevise.accounts_path expect(page.current_url).to match(/#{mtdevise.new_user_session_path}/) expect(page).to have_text('You need to sign in or sign up before continuing') end end end
Version data entries
18 entries across 18 versions & 1 rubygems