test/test_helper.rb in pagarme-1.9.8 vs test/test_helper.rb in pagarme-1.9.9
- old
+ new
@@ -1,6 +1,6 @@
-require 'pagarme'
+require_relative '../lib/pagarme'
require 'test/unit'
require 'shoulda'
def test_transaction(params = {})
return PagarMe::Transaction.new({
@@ -78,16 +78,16 @@
return PagarMe::Transaction.new({
:amount => 1000,
:card_number => '4901720080344448',
:card_holder_name => "Jose da Silva",
:card_expiration_month => 11,
- :card_expiration_year => "14",
+ :card_expiration_year => "19",
:card_cvv => 356,
:customer => {
:name => "Jose da Silva",
:document_number => "36433809847",
- :email => "henrique@pagar.me",
+ :email => "henrique+test@pagar.me",
:address => {
:street => 'Av. Brigadeiro Faria Lima',
:neighborhood => 'Itaim bibi',
:zipcode => '01452000',
:street_number => 2941,
@@ -106,10 +106,10 @@
return PagarMe::Subscription.new({
:amount => 1000,
:card_number => '4901720080344448',
:card_holder_name => "Jose da silva",
:card_expiration_month => 11,
- :card_expiration_year => 14,
+ :card_expiration_year => 19,
:card_cvv => 356,
:customer => {
:name => "Jose da Silva",
:document_number => "36433809847",
:email => "henrique@pagar.me",