Skip to content

Commit 1050e3a

Browse files
authored
Merge pull request rmosolgo#2521 from mpoisot/patch-1
Correct http header in example
2 parents 1fdf76a + 5b9fd34 commit 1050e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/testing/integration_tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ it "loads user token into the viewer" do
117117
user = create(:user)
118118
post graphql_path,
119119
params: { query: query_string },
120-
headers: { "Authentication" => "Bearer #{user.auth_token}" }
120+
headers: { "Authorization" => "Bearer #{user.auth_token}" }
121121

122122
json_response = JSON.parse(@response.body)
123123
assert_equal user.username, json_response["data"]["viewer"], "Authenticated requests load the viewer"

0 commit comments

Comments
 (0)