Commit e89d6223 by Francis Zhou

fix DingtalkSdk::Robot.calculate_signature rspec

parent 59713a96
...@@ -5,7 +5,7 @@ require 'dingtalk_sdk/robot' ...@@ -5,7 +5,7 @@ require 'dingtalk_sdk/robot'
RSpec.describe DingtalkSdk::Robot do RSpec.describe DingtalkSdk::Robot do
it 'should calculate correct signature' do it 'should calculate correct signature' do
timestamp = 1_603_868_410 timestamp = 1_603_868_410_000
secret = 'this is secret' secret = 'this is secret'
sign = DingtalkSdk::Robot.calculate_signature(secret, timestamp) sign = DingtalkSdk::Robot.calculate_signature(secret, timestamp)
......
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