Sha256: 9f8ada270315b79502fd911a07ee1b5b3dcd9488aefb932b385fd512d7af6d7c
Contents?: true
Size: 773 Bytes
Versions: 23
Compression:
Stored size: 773 Bytes
Contents
require 'spec_helper' describe Killbill::Plugin::ActiveMerchant::RSpec do include Killbill::Plugin::ActiveMerchant::RSpec it 'should build payment method properties' do overridden_city = SecureRandom.uuid props1 = build_pm_properties props2 = build_pm_properties(nil, {:city => overridden_city}) props3 = build_pm_properties(nil, {:city => overridden_city, :foo => :bar}) props1.size.should == props2.size props3.size.should == props1.size + 1 city1 = props1.find { |p| p.key == 'city' } city2 = props2.find { |p| p.key == 'city' } city3 = props3.find { |p| p.key == 'city' } city1.value.should_not == city2.value city2.value.should == city3.value (props3.find { |p| p.key == :foo }).value.should == :bar end end
Version data entries
23 entries across 23 versions & 1 rubygems