Sha256: e0a53e499679b811d39af852e1683a4bbc9e47313f203fc911fc87cd189aafc5

Contents?: true

Size: 301 Bytes

Versions: 6

Compression:

Stored size: 301 Bytes

Contents

# A strawman matcher for claims-based credentials for use in tests
# frozen_string_literal: true

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

6 entries across 6 versions & 1 rubygems

Version Path
rails-auth-3.2.0 spec/support/claims_matcher.rb
rails-auth-3.1.0 spec/support/claims_matcher.rb
rails-auth-3.0.0 spec/support/claims_matcher.rb
rails-auth-2.2.2 spec/support/claims_matcher.rb
rails-auth-2.2.1 spec/support/claims_matcher.rb
rails-auth-2.2.0 spec/support/claims_matcher.rb