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
51411331
Commit
51411331
authored
Mar 27, 2014
by
lanrion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added spec for test is_valid?
parent
5d73b474
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
spec/1_fetch_access_token_spec.rb
+6
-0
No files found.
spec/1_fetch_access_token_spec.rb
View file @
51411331
...
@@ -17,5 +17,11 @@ describe WeixinAuthorize::Client do
...
@@ -17,5 +17,11 @@ describe WeixinAuthorize::Client do
access_token_2
=
$client
.
get_access_token
access_token_2
=
$client
.
get_access_token
expect
(
access_token_1
).
to
eq
(
access_token_2
)
expect
(
access_token_1
).
to
eq
(
access_token_2
)
end
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
end
end
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