Sha256: 4cdef6fbc140c0b4d387f96760376bdc6faa616c4603efd5f84df368467367ba
Contents?: true
Size: 414 Bytes
Versions: 3
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :session, class: "KeycloakRack::Session" do token { FactoryBot.create :decoded_token } skipped { false } auth_result { Dry::Monads.Success token } initialize_with do KeycloakRack::Session.new(**attributes) end to_create do |instance| instance end trait :anonymous do token { nil } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
keycloak_rack-1.1.1 | spec/factories/session.rb |
keycloak_rack-1.1.0 | spec/factories/session.rb |
keycloak_rack-1.0.0 | spec/factories/session.rb |