Sha256: c4c4919b744d53fdc187f2cd3b472fa47dc1929fb55b23e7ddb30d135022294e
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) RSpec.describe Wechat::Pay::Client do subject do described_class.new\ 'mch_id', 'wxappid', key: 'key', password: 'password', cert: 'cert', sign_key: 'sign_key' end it :trim_and_sort do expect( subject.send(:trim_and_sort, b: 2, c: 3, a: 1).values ).to start_with(1) end it :sign do expect(subject.send(:sign, b: 2, a: 1)).to have_key(:sign) end it :xml do expect(subject.send(:xml, b_1: 2, a: 1)).to match(/xml/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wechat-api-0.2.1 | spec/wechat/pay/client_spec.rb |
wechat-api-0.2.0 | spec/wechat/pay/client_spec.rb |
wechat-api-0.1.3 | spec/wechat/pay/client_spec.rb |