Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weixin_authorize
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
weixin_authorize
Commits
d3e28ff1
Commit
d3e28ff1
authored
Feb 03, 2015
by
lanrion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test and clean codes
parent
2124121e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
lib/weixin_authorize/api/oauth.rb
+0
-3
spec/api/qrcode_spec.rb
+2
-2
No files found.
lib/weixin_authorize/api/oauth.rb
View file @
d3e28ff1
...
...
@@ -33,9 +33,6 @@ module WeixinAuthorize
WeixinAuthorize
.
http_get_without_token
(
"/sns/userinfo?access_token=
#{
oauth_token
}
&openid=
#{
openid
}
&lang=
#{
lang
}
"
,
{},
"api"
)
end
private
end
end
end
spec/api/qrcode_spec.rb
View file @
d3e28ff1
...
...
@@ -5,14 +5,14 @@ describe WeixinAuthorize::Api::Qrcode do
it
"#create_qr_scene"
do
response
=
$client
.
create_qr_scene
(
"123"
)
expect
(
response
.
code
).
to
eq
(
WeixinAuthorize
::
OK_CODE
)
expect
(
response
.
result
.
keys
).
to
eq
([
"ticket"
,
"expire_seconds"
])
expect
(
response
.
result
.
keys
).
to
eq
([
"ticket"
,
"expire_seconds"
,
"url"
])
expect
(
response
.
result
[
"expire_seconds"
]).
to
eq
(
1800
)
end
it
"#create_qr_limit_scene"
do
response
=
$client
.
create_qr_limit_scene
(
"1234"
)
expect
(
response
.
code
).
to
eq
(
WeixinAuthorize
::
OK_CODE
)
expect
(
response
.
result
.
keys
).
to
eq
([
"ticket"
])
expect
(
response
.
result
.
keys
).
to
eq
([
"ticket"
,
"url"
])
end
it
"#return_qr_url"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment