Sha256: b147084230eae63cf28a6751bc0a3435baf20e51404d454de5912c9dd881f1f7

Contents?: true

Size: 536 Bytes

Versions: 22

Compression:

Stored size: 536 Bytes

Contents

require "spec_helper"

describe PagSeguro::Holder do
  let(:holder) { PagSeguro::Holder.new('Cleonice Maria', '31/12/2013') }
  subject { holder }

  it { should respond_to(:name) }
  it { should respond_to(:birthdate) }
  it { should respond_to(:document) }
  it { should respond_to(:phone) }

  describe 'presence validations' do
    it { should validate_presence_of(:name) }
    it { should validate_presence_of(:birthdate) }
    it { should validate_presence_of(:document) }
    it { should validate_presence_of(:phone) }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
pagseguro-transparente-1.1.0 spec/pagseguro/holder_spec.rb
pagseguro-transparente-1.0.1 spec/pagseguro/holder_spec.rb
pagseguro-transparente-1.0.0 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.2.5 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.2.4 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.2.3 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.2.2 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.2.1 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.2.0 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.1.3 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.1.2 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.1.1 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.1.0 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.0.9 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.0.8 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.0.7 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.0.6 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.0.5 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.0.4 spec/pagseguro/holder_spec.rb
pagseguro-transparente-0.0.3 spec/pagseguro/holder_spec.rb