Skip to content

Instantly share code, notes, and snippets.

@sivajag
Created May 1, 2012 00:35
Show Gist options
  • Save sivajag/2564006 to your computer and use it in GitHub Desktop.
Save sivajag/2564006 to your computer and use it in GitHub Desktop.
(deftest ^:integration test-friends-list
(in-facebook-lab FB-APP-ID FB-APP-SECRET
(let [jack (test-user/create "jack")
jill (test-user/create "jill")
mary (test-user/create "mary")]
(login-as jack)
(test-user/make-friend jill)
(test-user/make-friend mary)
(let [friends-of-jack (gateway/friends-list (test-user/access-token))]
(is (= 2 (count friends-of-jack)))
(is (some #(= "jill" (:first_name %)) friends-of-jack))
(is (some #(= "mary" (:first_name %)) friends-of-jack))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment