Sha256: dfc4a996b12efb984d5152784b9997b72f1710c8be0305aa2bcbe4176bb1d20a
Contents?: true
Size: 497 Bytes
Versions: 21
Compression:
Stored size: 497 Bytes
Contents
require "spec_helper" describe PagSeguro::Transaction::PaymentMethod do let(:xml) { MultiXml.parse(xml_file) } let(:payment_method) do PagSeguro::Transaction::PaymentMethod.new(xml['paymentMethod']) end subject { payment_method } its(:payment_type) { should eq('1') } its(:payment_type_name) { should eq(:credit_card) } its(:payment_code) { should eq('101') } let(:xml_file) { "<paymentMethod> <type>1</type> <code>101</code> </paymentMethod>" } end
Version data entries
21 entries across 21 versions & 1 rubygems