Sha256: 0d40e21bca0227891547b7988fd2fbfa9f4ec5d7ae1147e03acb8e2fe995f636
Contents?: true
Size: 532 Bytes
Versions: 16
Compression:
Stored size: 532 Bytes
Contents
require 'spec_helper' describe Clearance::Constraints::SignedOut do it 'returns true when user is signed out' do signed_out_constraint = Clearance::Constraints::SignedOut.new signed_out_constraint.matches?(request_without_remember_token).should be_true end it 'returns false when user is not signed out' do user = create(:user) signed_out_constraint = Clearance::Constraints::SignedOut.new signed_out_constraint.matches?(request_with_remember_token(user.remember_token)). should be_false end end
Version data entries
16 entries across 16 versions & 1 rubygems