Sha256: 2e6b0f40317baf59c269ff3cd87c9a49c2a1b695955cfc02ca95f9cb83d1f028
Contents?: true
Size: 1.46 KB
Versions: 5
Compression:
Stored size: 1.46 KB
Contents
require 'spec_helper' describe ProcessingKz do it 'sets and returns merchant_id properly' do ProcessingKz.config do |config| config.merchant_id = '333000000000000' end expect(ProcessingKz::Config.merchant_id).to eq('333000000000000') end it 'sets and returns language_code properly' do ProcessingKz.config do |config| config.language_code = 'ru' end expect(ProcessingKz::Config.language_code).to eq('ru') end it 'restricts to set unsupported languages' do expect do ProcessingKz.config do |config| config.language_code = 'de' end end.to raise_error(UnsupportedLanguageError) end it 'sets and returns currency_code properly' do ProcessingKz.config do |config| config.currency_code = '398' end expect(ProcessingKz::Config.currency_code).to eq('398') end it 'sets and returns wsdl properly' do ProcessingKz.config do |config| config.wsdl = 'https://test.processing.kz/CNPMerchantWebServices/CNPMerchantWebService.wsdl' end expect(ProcessingKz::Config.wsdl).to eq('https://test.processing.kz/CNPMerchantWebServices/CNPMerchantWebService.wsdl') end it 'sets and returns host properly' do ProcessingKz.config do |config| config.host = 'https://test.processing.kz/CNPMerchantWebServices/services/CNPMerchantWebService' end expect(ProcessingKz::Config.host).to eq('https://test.processing.kz/CNPMerchantWebServices/services/CNPMerchantWebService') end end
Version data entries
5 entries across 5 versions & 1 rubygems