pagarme 1.9 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc3ec78987e1e9d64ad4c313f0c3c06e7760549d
4
- data.tar.gz: 1be448c81570b3ec83fddbd097a349f4ad891f41
3
+ metadata.gz: 1078b08d54df42f7a95ec5e163769b01e0699816
4
+ data.tar.gz: a0dcc06d0df81d49953f6fce519b2724582295f4
5
5
  SHA512:
6
- metadata.gz: dd20b3eb36d191b96c4ea122f6275c15bff92f0f3bac664fd2a9a9a3450b23d59ed50244bc3e47721c23c5d67064c6a28ae29e2a8b21246af95643dda627dc93
7
- data.tar.gz: 0d947061f100ea81d42f49ea3a62daf49cae80f3b4b8f7b5cea64ceb5e1ce8285127f0430646d2b07894c0d3f3f8bd112dc22ea941baeccfd7bb62852cb28c04
6
+ metadata.gz: e4c3851242c61d78504f520dbd68f62a94b8ac1623b81cf28103fcc574b613b0f63707f8590d5a294083c19ceed9039b620f00c8587431dce85e48e682313b88
7
+ data.tar.gz: 921a1f600f8be2d8ca3824c96dca4461246b3eca60ed99334ce7d705e6447a840e7b17ea44250e9d71ff4cf056772b4550506872606fb075bdf3c8cb23289602
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pagarme (1.8)
4
+ pagarme (1.9)
5
5
  multi_json
6
6
  rest-client
7
7
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "pagarme"
7
- spec.version = 1.9
7
+ spec.version = '1.9.1'
8
8
  spec.authors = ["Pedro Franceschi", "Henrique Dubugras"]
9
9
  spec.email = ["pedrohfranceschi@gmail.com", "henrique@pagar.me"]
10
10
  spec.description = %q{Pagar.me's ruby gem}
@@ -11,6 +11,21 @@ module PagarMe
11
11
  test_transaction_response(transaction)
12
12
  end
13
13
 
14
+ should 'be able to simulate a boleto payment' do
15
+ transaction = PagarMe::Transaction.new({
16
+ :payment_method => "boleto",
17
+ :amount => "1000"
18
+ })
19
+ transaction.charge
20
+
21
+ assert transaction.status == 'waiting_payment'
22
+
23
+ transaction.status = 'paid'
24
+ transaction.save
25
+
26
+ assert transaction.status == 'paid'
27
+ end
28
+
14
29
  should 'be able to refund' do
15
30
  transaction = test_transaction
16
31
  transaction.charge
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.9'
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Franceschi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-15 00:00:00.000000000 Z
12
+ date: 2014-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler