Skip to content

Commit

Permalink
add /
Browse files Browse the repository at this point in the history
  • Loading branch information
victorhazbunanuff committed Jan 31, 2013
1 parent 66b1940 commit 8191d92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/urbanairship.rb
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/urbanairship_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8191d92

Please sign in to comment.