Commit 51411331 by lanrion

added spec for test is_valid?

parent 5d73b474
......@@ -17,5 +17,11 @@ describe WeixinAuthorize::Client do
access_token_2 = $client.get_access_token
expect(access_token_1).to eq(access_token_2)
end
it "return errorcode and errormsg when appid or appsecret is invalid" do
$client_1 = WeixinAuthorize::Client.new("appid", "app_secret")
valid_info = $client_1.is_valid?
expect(valid_info).to eq(false)
end
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