Commit 6b30b859 by lang1pal

#26 add rspec

parent 758ef3af
......@@ -14,5 +14,11 @@ describe WeixinAuthorize::Api::Qrcode do
expect(response.code).to eq(WeixinAuthorize::OK_CODE)
expect(response.result.keys).to eq(["ticket"])
end
it "#return_qr_url" do
response = $client.create_qr_limit_scene("1234")
qr_url = $client.qr_code_url(response.result["ticket"])
expect(response.code).to eq(WeixinAuthorize::OK_CODE)
expect(qr_url).to include("mp.weixin.qq.com")
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment