Sha256: e87f8adc5d8ef5e6eb27d9d940cb6efecbca67e9c5f08db6653b9090bc187f33
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
#encoding:utf-8 require 'test/unit' require "#{File.dirname(__FILE__)}/../lib/Baidupush/base" require "#{File.dirname(__FILE__)}/../lib/Baidupush/push" class TestBase < Test::Unit::TestCase # To change this template use File | Settings | File Templates. include Baidupush def test_api_query_bindlist assert_block do p "Request query bindlist" api = PushNotice.new ret = api.query_bindlist p ret ret end end def test_send_msg_andriod assert_block do p "Request Send msg andriod" api = PushNotice.new ret = api.push_msg_andriod(api.get_android_msg("测试","这是个测试",{"c1"=>1,"c2"=>2})) p ret ret end end def test_send_msg_ios assert_block do p "Request Send msg IOS" api = PushNotice.new ret = api.push_msg_andriod(api.get_ios_msg({"test"=>"这是个测试"},{:deploy_status=>1})) p ret ret end end def test_set_tag assert_block do p "Requrest Set tag" api = PushNotice.new ret = api.tag_set p ret ret end end def test_fetch_tag assert_block do p "Request Fetch tag" api = PushNotice.new ret = api.tag_fetch p ret ret end end def test_delete_tag assert_block do p "Request Delete tag" api = PushNotice.new ret = api.tag_delete p ret ret end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
Baidupush-0.0.7 | test/test_base.rb |
Baidupush-0.0.6 | test/test_base.rb |
Baidupush-0.0.4 | test/test_base.rb |
Baidupush-0.0.3 | test/test_base.rb |
Baidupush-0.0.2 | test/test_base.rb |