Sha256: b3234ff06eeecd6f93e655e0f1c9f505174480c7404186e3325268bbfaa301cc
Contents?: true
Size: 406 Bytes
Versions: 21
Compression:
Stored size: 406 Bytes
Contents
require "spec_helper" describe PagSeguro::Transaction::Phone do let(:xml) { MultiXml.parse(xml_file) } let(:phone) do PagSeguro::Transaction::Phone.new(xml['phone']) end subject { phone } its(:area_code) { should eq('11') } its(:number) { should eq('56273440') } let(:xml_file) { "<phone> <areaCode>11</areaCode> <number>56273440</number> </phone>" } end
Version data entries
21 entries across 21 versions & 1 rubygems