Created
April 17, 2015 18:20
-
-
Save peterzawistowicz/742bce43b214f8c4265e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function subSecondFeed(callback) { | |
var user = TEST_USERS[0]; | |
frisby.create('PUT Add second feed sub for user ' + user.email) | |
.put(tc.url + '/feeds/subscribe', | |
{'feedURL' : nycEaterFeedURL}) | |
.auth(user.sp_api_key_id, user.sp_api_key_secret) | |
.expectStatus(201) | |
.expectHeader('Content-Type', 'application/json; charset=utf-8') | |
.expectJSONLength('user.subs', 2) | |
.toss() | |
callback(null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment