Sha256: 65ced2b83a3fc83a76dfe43b478156538cc5e9456b812a1ec91d17bb368388a2

Contents?: true

Size: 270 Bytes

Versions: 21

Compression:

Stored size: 270 Bytes

Contents

# A strawman matcher for claims-based credentials for use in tests
class ClaimsMatcher
  def initialize(options)
    @options = options
  end

  def match(_env)
    # Pretend like we have a claim to be in the "example" group
    @options["group"] == "example"
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rails-auth-0.1.0 spec/support/claims_matcher.rb