hophacker

Results 4 comments of hophacker

@FrankFang 跟您一样,当时琢磨如何测试WechatsController花了不少时间,代码如下: ```ruby require 'rails_helper' include Wechat::Cipher def unpack(msg) msg_len = msg[16, 4].reverse.unpack('V')[0] content = msg[20, msg_len] app_id = msg[(20 + msg_len)..-1] [content, app_id] end RSpec.describe WechatsController, type: :controller do...

I'm running in the same issue.