Created
April 17, 2015 18:19
-
-
Save peterzawistowicz/a4c561acf5510585d5a6 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 subOneFeed(callback) { | |
var user = TEST_USERS[0]; | |
frisby.create('PUT Add feed sub for user ' + user.email) | |
.put(tc.url + '/feeds/subscribe', {'feedURL' : dilbertFeedURL}) | |
.auth(user.sp_api_key_id, user.sp_api_key_secret) | |
.expectStatus(201) | |
.expectHeader('Content-Type', 'application/json; charset=utf-8') | |
.expectJSONLength('user.subs', 1) | |
.toss() | |
callback(null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment