Sha256: a4d8a1259783142c3595a7a64d894943789395b2a6ea5b6c0ce0a877f7a13823
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require "spec_helper" describe PagSeguro::Notification::Sender do let(:xml) { MultiXml.parse(xml_file) } let(:sender) do PagSeguro::Notification::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::Notification::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pagseguro-transparente-0.0.1 | spec/pagseguro/notification/sender_spec.rb |