Skip to content

Commit

Permalink
Update spec to receive [] when no comments to process
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Loretz committed Feb 1, 2022
1 parent c2f99ac commit 6d865f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/linkedin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
)
.to_return(status: 200, body: "{\"paging\":{\"start\":0,\"count\":100,\"links\":[{\"type\":\"application/json\",\"rel\":\"prev\",\"href\":\"/v2/ugcPosts?q=authors&start=0&count=100&sortBy=LAST_MODIFIED&authors=List(org)\"}],\"total\":0},\"elements\": []}", headers: {})

expect(subject.get_posts).to eql("No new posts to process from your LinkedIn organization.\nIf you suspect this is incorrect, verify your LinkedIn organization schema is correct in your credentials.\n")
expect(subject.get_posts).to eql([])
end
end

Expand Down

0 comments on commit 6d865f6

Please sign in to comment.