Commit 38438614 by lanrion

updated user_spec.rb

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