Sha256: 3e3f1267aa2e43ddac8d7c2d4f16844f921149532925bd62e8ac06f29e89cb81
Contents?: true
Size: 611 Bytes
Versions: 21
Compression:
Stored size: 611 Bytes
Contents
require "spec_helper" describe PagSeguro::Transaction::Sender do let(:xml) { MultiXml.parse(xml_file) } let(:sender) do PagSeguro::Transaction::Sender.new(xml['sender']) end subject { sender } its(:name) { should eq('José Comprador') } its(:email) { should eq('comprador@uol.com.br') } its(:phone) { should be_a_kind_of(PagSeguro::Transaction::Phone) } let(:xml_file) { "<sender> <name>José Comprador</name> <email>comprador@uol.com.br</email> <phone> <areaCode>11</areaCode> <number>56273440</number> </phone> </sender>" } end
Version data entries
21 entries across 21 versions & 1 rubygems