Skip to content

Commit

Permalink
move the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phoet committed Dec 9, 2019
1 parent edb09ee commit a92e3ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/webflow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ def test_it_yields_items_when_a_block_is_given

limit = 3
client.items(COLLECTION_ID, limit: limit) do |items|
assert_equal(client.limit, 60)
assert_equal(client.remaining, 60)
assert_equal(items.length, limit)
end
end
Expand Down Expand Up @@ -135,10 +133,14 @@ def test_it_tracks_rate_limits
client.collections(SITE_ID)
limit = {"X-Ratelimit-Limit"=>"60", "X-Ratelimit-Remaining"=>"41"}
assert_equal(limit, client.rate_limit)
assert_equal(client.limit, 60)
assert_equal(client.remaining, 41)

client.collections(SITE_ID)
limit = {"X-Ratelimit-Limit"=>"60", "X-Ratelimit-Remaining"=>"40"}
assert_equal(limit, client.rate_limit)
assert_equal(client.limit, 60)
assert_equal(client.remaining, 40)
end
end

Expand Down

0 comments on commit a92e3ed

Please sign in to comment.