Skip to content

Commit

Permalink
test query for failing test / stub request
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconsaurus committed Jan 24, 2024
1 parent 7b47136 commit 55fff61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/models/parser/twitter_profile_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def stub_profile_lookup
test "it makes a get request to the user lookup by username endpoint successfully" do
stub_configs({'twitter_bearer_token' => 'test' })

WebMock.stub_request(:get, "https://api.twitter.com/2/users/by")
.with(query: query)
WebMock.stub_request(:get, "https://api.twitter.com/2/users/by?user.fields=profile_image_url,name,username,description,created_at,url&usernames=fake_user")
.with(headers: {
"Authorization": "Bearer test",
'Accept'=>'*/*',
Expand Down

0 comments on commit 55fff61

Please sign in to comment.