Sha256: 55f5ee68c1375b8a498d8fc54cd2001235970095bcd0cd06c4ce58ffe84505e3
Contents?: true
Size: 707 Bytes
Versions: 6
Compression:
Stored size: 707 Bytes
Contents
require 'spec_helper' require 'support/features/feature_helpers' feature 'visitor has consecutive bad logins' do before(:each) do @user = create(:user) end scenario 'visitor logs in and subsequent click within lifetime' do sign_in_with @user.email, @user.password expect_user_to_be_signed_in Timecop.travel 1.minutes do visit root_path expect_user_to_be_signed_in end end scenario 'visitor logs in and lets session live too long' do sign_in_with @user.email, @user.password expect_user_to_be_signed_in Timecop.travel 2.days do visit root_path expect(current_path).to eq sign_in_path expect_user_to_be_signed_out end end end
Version data entries
6 entries across 6 versions & 1 rubygems