Commit 25c0ca3d by Francis Zhou

add missing constructor arguments

parent 858363cd
......@@ -4,11 +4,16 @@ require "dingtalk/access_token"
RSpec.describe Dingtalk::AccessToken do
before :each do
@agent_id = "mocked_agent_id"
@app_key = "mocked_app_key"
@app_secret = "mocked_app_secret"
@mocked_access_token = "mocked_access_token"
@dingtalk_request = Dingtalk::Request.new(app_key: @app_key, app_secret: @app_secret)
@dingtalk_request = Dingtalk::Request.new(
agent_id: @agent_id,
app_key: @app_key,
app_secret: @app_secret,
)
response_body = {}.tap do |h|
h[:errcode] = 0
......
......@@ -8,6 +8,7 @@ require "dingtalk/auth"
RSpec.describe Dingtalk::Auth do
before :each do
@agent_id = "mocked_agent_id"
@app_key = "mocked_app_key"
@app_secret = "mocked_app_secret"
......@@ -18,7 +19,11 @@ RSpec.describe Dingtalk::Auth do
@signature = Dingtalk.login_free_signature(@app_secret, timestamp: @timestamp)
@dingtalk_request = Dingtalk::Request.new(app_key: @app_key, app_secret: @app_secret)
@dingtalk_request = Dingtalk::Request.new(
agent_id: @agent_id,
app_key: @app_key,
app_secret: @app_secret,
)
# 企业内部免登 响应结果
get_user_info_response_body = {}.tap do |h|
......
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