Sha256: 51b10f345ac0b58c61427206bf04b0de63db7bffbe96c44186c8e8f1cad4fc2c

Contents?: true

Size: 242 Bytes

Versions: 1

Compression:

Stored size: 242 Bytes

Contents

# An additional predicate class for tests
class ClaimsPredicate
  def initialize(options)
    @options = options
  end

  def match(_env)
    # Pretend like our principal is in the "example" group
    @options["group"] == "example"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-auth-0.0.1 spec/support/claims_predicate.rb