Sha256: 093deb9a0ba6f1c7385e20054e63366402abf25d8e92c75fab7b1793760abbd9
Contents?: true
Size: 665 Bytes
Versions: 4
Compression:
Stored size: 665 Bytes
Contents
shared_examples 'Unidom::Visitor::Concerns::AsCredential' do |model_attributes| context do authenticating_attributes = { visitor_id: SecureRandom.uuid, visitor_type: 'Unidom::Visitor::Visitor::Mock', flag_code: Unidom::Visitor::Flag::REQUIRED.code } it_behaves_like 'has_one', model_attributes, :authenticating, Unidom::Visitor::Authenticating, authenticating_attributes model = described_class.create! model_attributes visitor = Unidom::Visitor::User.create! it_behaves_like 'assert_present!', model, :authenticate!, [ visitor, at: Time.now, flag_code: 'RQRD' ], [ { 0 => :it }, :at, :flag_code ] end end
Version data entries
4 entries across 4 versions & 1 rubygems