Sha256: 797010312298beee97d22341ffaf501e26a7b029d47a6d41c4d53f9537aa6a3f
Contents?: true
Size: 1.5 KB
Versions: 3
Compression:
Stored size: 1.5 KB
Contents
ENV['RACK_ENV'] = 'test' require 'rack/test' require 'rack' require 'rack-protection' require 'rspec' require 'rspec-html-matchers' require './lib/wei-backend' TEXT_MESSAGE_REQUEST='<xml><ToUserName><![CDATA[toUser]]></ToUserName><FromUserName>'+ '<![CDATA[fromUser]]></FromUserName><CreateTime>1348831860</CreateTime><MsgType><![CDATA[text]]></MsgType>'+ '<Content><![CDATA[this is a test]]></Content><MsgId>1234567890123456</MsgId></xml>' EVENT_MESSAGE_REQUEST='<xml><ToUserName><![CDATA[toUser]]></ToUserName>'+ '<FromUserName><![CDATA[fromUser]]></FromUserName><CreateTime>123456789</CreateTime>'+ '<MsgType><![CDATA[event]]></MsgType><Event><![CDATA[subscribe]]></Event></xml>' LOCATION_EVENT_REQUEST='<xml> <ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[fromUser]]></FromUserName> <CreateTime>123456789</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[LOCATION]]></Event> <Latitude>23.137466</Latitude> <Longitude>113.352425</Longitude> <Precision>119.385040</Precision> </xml>' SUBSCRIBE_EVENT_REQUEST='<xml> <ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>123456789</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[subscribe]]></Event> </xml>' PARSED_PARAMS={ :ToUserName => 'toUser', :FromUserName => 'fromUser', :CreateTime => '1348831860', :MsgType => 'text', :Content => 'this is a test', :MsgId => '1234567890123456' } def app Sinatra::Application end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wei-backend-0.0.4 | spec/spec_helper.rb |
wei-backend-0.0.3 | spec/spec_helper.rb |
wei-backend-0.0.2 | spec/spec_helper.rb |