Commit 38438614 by lanrion

updated user_spec.rb

parent b97d7d00
......@@ -3,11 +3,11 @@ require "spec_helper"
describe WeixinAuthorize::Api::User do
it "can get a weixin User info" do
user_info = $client.user(ENV["OPENID"])
puts user_info
expect(user_info["openid"]).to eq(ENV["OPENID"])
end
it "can get followers infos" do
followers = $client.followers
puts followers
expect(followers.keys).to eq(["total", "count", "data", "next_openid"])
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