From 6d865f65842e5fe565bd65cc349b419fae9ca2a5 Mon Sep 17 00:00:00 2001 From: Colin Loretz Date: Tue, 1 Feb 2022 12:30:46 -0800 Subject: [PATCH] Update spec to receive [] when no comments to process --- spec/linkedin_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/linkedin_spec.rb b/spec/linkedin_spec.rb index 85d6a68..5ebcc84 100644 --- a/spec/linkedin_spec.rb +++ b/spec/linkedin_spec.rb @@ -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