Commit 36e5c583 by lang1pal

#26 change include to regex

parent 6b30b859
......@@ -19,6 +19,7 @@ describe WeixinAuthorize::Api::Qrcode 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")
expect(qr_url).to match(/(\S+\.(com|net|org|edu|gov)(\/\S+)?)/)
# 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