Skip to content

Commit 5cc2f93

Browse files
committed
refactor
1 parent 16b94f6 commit 5cc2f93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/line/bot/client_channel_token_spec.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ def generate_client
9999
end
100100

101101
it 'get all valid channel access token key ids v2.1' do
102+
client_assertion = 'jwt_string'
103+
client_assertion_type = 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'
104+
102105
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_OAUTH_ENDPOINT +
103-
"/oauth2/v2.1/tokens/kid?client_assertion=jwt_string&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
106+
"/oauth2/v2.1/tokens/kid?client_assertion=#{client_assertion}&client_assertion_type=#{client_assertion_type}"
104107
stub_request(:any, uri_template).to_return { |request| {body: GET_CHANNEL_ACCESS_TOKEN_KEY_IDS_JWT_CONTENT, status: 200} }
105108

106109
client = generate_client

0 commit comments

Comments
 (0)