Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add /

  • Loading branch information...
commit 8191d9253c46fed6ec82e21dc6be80d0273fa014 1 parent 66b1940
@victorhazbunanuff authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/urbanairship.rb
  2. +2 −2 spec/urbanairship_spec.rb
View
2  lib/urbanairship.rb
@@ -88,7 +88,7 @@ def untag_device(params)
end
def device_tokens_count
- do_request(:get, "/api/device_tokens/count", :authenticate_with => :master_secret)
+ do_request(:get, "/api/device_tokens/count/", :authenticate_with => :master_secret)
end
private
View
4 spec/urbanairship_spec.rb
@@ -73,8 +73,8 @@
FakeWeb.register_uri(:post, /bad_key\:my_master_secret\@go\.urbanairship\.com/, :status => ["401", "Unauthorized"])
#device_tokens_count
- FakeWeb.register_uri(:get, /my_app_key\:my_master_secret\@go\.urbanairship.com\/api\/device_tokens\/count/, :status => ["200", "OK"], :body => "{\"device_tokens_count\":50, \"active_device_tokens_count\":55}")
- FakeWeb.register_uri(:get, /my_app_key2\:my_master_secret2\@go\.urbanairship.com\/api\/device_tokens\/count/, :status => ["500", "Internal Server Error"])
+ FakeWeb.register_uri(:get, /my_app_key\:my_master_secret\@go\.urbanairship.com\/api\/device_tokens\/count\//, :status => ["200", "OK"], :body => "{\"device_tokens_count\":50, \"active_device_tokens_count\":55}")
+ FakeWeb.register_uri(:get, /my_app_key2\:my_master_secret2\@go\.urbanairship.com\/api\/device_tokens\/count\//, :status => ["500", "Internal Server Error"])
end
describe "configuration" do
Please sign in to comment.
Something went wrong with that request. Please try again.