test/test_helper.rb in pagarme-1.0 vs test/test_helper.rb in pagarme-1.1

- old
+ new

@@ -49,61 +49,61 @@ }.merge(params)) end def test_transaction_with_customer(params = {}) return PagarMe::Transaction.new({ - :amount => 1000, - :card_number => '4901720080344448', - :card_holder_name => "Jose da Silva", - :card_expiration_month => 11, - :card_expiration_year => "13", - :card_cvv => 356, - :customer => { - :name => "Jose da Silva", - :document_number => "36433809847", - :email => "henrique@pagar.me", - :address => { - :street => 'Av. Brigadeiro Faria Lima', - :neighborhood => 'Itaim bibi', - :zipcode => '01452000', - :street_number => 2941, - }, - :phone => { - :ddd => 12, - :number => '981433533', - }, - :sex => 'M', - :born_at => '1970-10-11' - } + :amount => 1000, + :card_number => '4901720080344448', + :card_holder_name => "Jose da Silva", + :card_expiration_month => 11, + :card_expiration_year => "14", + :card_cvv => 356, + :customer => { + :name => "Jose da Silva", + :document_number => "36433809847", + :email => "henrique@pagar.me", + :address => { + :street => 'Av. Brigadeiro Faria Lima', + :neighborhood => 'Itaim bibi', + :zipcode => '01452000', + :street_number => 2941, + }, + :phone => { + :ddd => 12, + :number => '981433533', + }, + :sex => 'M', + :born_at => '1970-10-11' + } }.merge(params)) end def test_subscription_with_customer(params = {}) return PagarMe::Subscription.new({ - :amount => 1000, - :card_number => '4901720080344448', - :card_holder_name => "Jose da silva", - :card_expiration_month => 11, - :card_expiration_year => 13, - :card_cvv => 356, - :customer_email => 'teste@teste.com', - :customer => { - :name => "Jose da Silva", - :document_number => "36433809847", - :email => "henrique@pagar.me", - :address => { - :street => 'Av. Brigadeiro Faria Lima', - :neighborhood => 'Itaim bibi', - :zipcode => '01452000', - :street_number => 2941, - } , - :phone => { - :ddd => 12, - :number => '981433533', - } , - :sex => 'M', - :born_at => '1970-10-11' - } + :amount => 1000, + :card_number => '4901720080344448', + :card_holder_name => "Jose da silva", + :card_expiration_month => 11, + :card_expiration_year => 14, + :card_cvv => 356, + :customer_email => 'teste@teste.com', + :customer => { + :name => "Jose da Silva", + :document_number => "36433809847", + :email => "henrique@pagar.me", + :address => { + :street => 'Av. Brigadeiro Faria Lima', + :neighborhood => 'Itaim bibi', + :zipcode => '01452000', + :street_number => 2941, + } , + :phone => { + :ddd => 12, + :number => '981444444', + } , + :sex => 'M', + :born_at => '1970-10-11' + } }.merge(params)) end def test_customer_response(customer)