spec/mock_facebook_responses.yml in koala-0.9.1 vs spec/mock_facebook_responses.yml in koala-0.10.0

- old
+ new

@@ -44,10 +44,14 @@ no_token: '{"error": {"type": "OAuthException", "message": "Error validating verification code."}}' # Subscription error response verification_error: &verification_error with_token: '{"error": {"type": "OAuthException", "message": "Error validating verification code."}}' + + test_user_no_perms: &test_user_no_perms + post: + with_token: '{"id": "777777777", "access_token":"119908831367602|o3wswWQ88LYjEC9-ukR_gjRIOMw.", "login_url":"https://www.facebook.com/platform/test_account.."}' # -- Stubbed Responses -- root: ids=contextoptional,naitik: get: @@ -236,6 +240,50 @@ /MOCK_COMMENT: no_args: <<: *item_deleted get: - with_token: "{\"message\": \"it\'s my comment!\"}" + with_token: "{\"message\": \"it\'s my comment!\"}" + +# -- Mock Test User Responses -- + /<%= APP_ID %>/accounts/test-users: + installed=false: + <<: *test_user_no_perms + installed=false&permissions=read_stream: + <<: *test_user_no_perms + installed=true&permissions=read_stream: + post: + with_token: '{"id": "999999999", "access_token":"119908831367602|o3wswWQ88LYjEC9-ukR_gjRIOMw.", "login_url":"https://www.facebook.com/platform/test_account.."}' + installed=true&permissions=read_stream,user_interests: + post: + with_token: '{"id": "888888888", "access_token":"119908831367602|o3wswWQ88LYjEC9-ukR_gjRIOMw.", "login_url":"https://www.facebook.com/platform/test_account.."}' + no_args: + get: + with_token: '{"data":[{"id": "999999999", "access_token":"119908831367602|o3wswWQ88LYjEC9-ukR_gjRIOMw.", "login_url":"https://www.facebook.com/platform/test_account.."}, {"id": "888888888", "access_token":"119908831367602|o3wswWQ88LYjEC9-ukR_gjRIOMw.", "login_url":"https://www.facebook.com/platform/test_account.."}]}' + + /999999999: + no_args: + <<: *item_deleted + + /9999999991: + no_args: + delete: + with_token: '{"error": {"type": "OAuthException", "message": "Error validating verification code."}}' + + /888888888: + no_args: + <<: *item_deleted + + /777777777: + no_args: + <<: *item_deleted + + /999999999/friends/888888888: + no_args: + get: + with_token: 'true' + + /888888888/friends/999999999: + no_args: + get: + with_token: 'true' + \ No newline at end of file