Sha256: 8cf974847dcc447ea6ff03ccd030230bc3bcd4ab686b6121da434606cf2cdb59

Contents?: true

Size: 197 Bytes

Versions: 24

Compression:

Stored size: 197 Bytes

Contents

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

24 entries across 24 versions & 1 rubygems

Version Path
graphql_devise-0.12.3 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.12.2 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.12.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.12.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.11.4 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.11.3 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.11.2 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.11.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.11.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.10.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.10.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.9.2 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.9.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.9.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.8.1 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.8.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.7.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.6.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.5.0 spec/support/matchers/auth_headers_matcher.rb
graphql_devise-0.4.1 spec/support/matchers/auth_headers_matcher.rb