Sha256: 3457de0a2f8e0a8623ede59a11dd77f4e1778bf63369e3508a9ef9bc30f824d4

Contents?: true

Size: 228 Bytes

Versions: 26

Compression:

Stored size: 228 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :include_auth_headers do
  match do |response|
    auth_headers = %w[uid access-token client].map { |key| response.headers[key] }
    auth_headers.all?(&:present?)
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-1.4.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-1.3.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-1.2.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-1.1.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-1.1.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-1.0.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-1.0.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.18.2 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.18.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.18.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.17.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.17.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.16.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.15.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.14.3 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.14.2 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.14.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.14.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.13.6 spec/support/matchers/auth_headers_matcher.rb