Sha256: d1ac1e158d8d4955cab3f5ad5a07f20c5e71ee97bb45279c6024de6f75be6240

Contents?: true

Size: 582 Bytes

Versions: 22

Compression:

Stored size: 582 Bytes

Contents

require "spec_helper"

describe PagSeguro::Sender do
  let(:sender) { PagSeguro::Sender.new }
  subject { sender }

  it { should respond_to(:email) }
  it { should respond_to(:name) }
  it { should respond_to(:hash_id) }
  it { should respond_to(:document) }
  it { should respond_to(:phone) }

  describe 'presence validations' do
    it { should validate_presence_of(:email) }
    it { should validate_presence_of(:name) }
    it { should validate_presence_of(:hash_id) }
    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/sender_spec.rb
pagseguro-transparente-1.0.1 spec/pagseguro/sender_spec.rb
pagseguro-transparente-1.0.0 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.2.5 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.2.4 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.2.3 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.2.2 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.2.1 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.2.0 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.1.3 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.1.2 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.1.1 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.1.0 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.0.9 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.0.8 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.0.7 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.0.6 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.0.5 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.0.4 spec/pagseguro/sender_spec.rb
pagseguro-transparente-0.0.3 spec/pagseguro/sender_spec.rb