Skip to content

Commit

Permalink
One more test for random + post types
Browse files Browse the repository at this point in the history
  • Loading branch information
iangreenleaf committed May 26, 2012
1 parent f944246 commit c20c57e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/request.coffee
Expand Up @@ -87,6 +87,13 @@ describe "tumblr api", ->
@t.random (data) ->
assert.deepEqual response.response.posts.pop(), data
done()
it "works with post types", (done) ->
network = nock("http://api.tumblr.com")
.get("/v2/blog/foo.bar.com/posts/photo?api_key=#{apiKey}&limit=1")
.reply(200, response)
.get("/v2/blog/foo.bar.com/posts/photo?api_key=#{apiKey}&limit=1&offset=34")
.reply(200, response)
tumblrbot.photos("foo.bar.com").random success done

describe "post type", ->
response =
Expand Down

0 comments on commit c20c57e

Please sign in to comment.