Sha256: 1bcf1e92d80e6d098a7a129d0a8878cd87eda0fda8302f7e80b38653d78b3fb6
Contents?: true
Size: 613 Bytes
Versions: 2
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' feature 'visitor signs out' do before do @user = create(:user) end scenario 'sign in and sign out' do sign_in_with(@user.email, @user.password) sign_out expect_user_to_be_signed_out end scenario 'sign out again' do sign_in_with(@user.email, @user.password) visit sign_out_path visit sign_out_path expect_user_to_be_signed_out end scenario 'redirects to sign in' do sign_in_with(@user.email, @user.password) visit sign_out_path expect_sign_in_path end end def expect_sign_in_path expect(current_path).to eq sign_in_path end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authenticate-0.7.3 | spec/features/sign_out_spec.rb |
authenticate-0.7.2 | spec/features/sign_out_spec.rb |