Sha256: 442ead4199b0d8cf1147ac3caf94048d3fc9fc6a09ab1451614a8cab2f84c43b
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
describe Wayforpay do subject { described_class } describe '.configure' do let(:merchant_account) { 'merchantAccount' } let(:merchant_domain_name) { 'merchantDomainName' } let(:encrypt_secret_key) { 'secretKey' } before do subject.configure do |config| config.merchant_account = merchant_account config.merchant_domain_name = merchant_domain_name config.encrypt_secret_key = encrypt_secret_key end end after do subject.instance_variable_set('@configuration', nil) end it { expect(subject.merchant_account).to eq(merchant_account) } it { expect(subject.merchant_domain_name).to eq(merchant_domain_name) } it { expect(subject.encrypt_secret_key).to eq(encrypt_secret_key) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wayforpay-0.1.0 | spec/wayforpay_spec.rb |