dineromail 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ module Dineromail
23
23
  end
24
24
 
25
25
  def completed?
26
- status == ACCREDITED_STATUS
26
+ status == COMPLETED_STATUS
27
27
  end
28
28
 
29
29
  def cancelled?
@@ -1,3 +1,3 @@
1
1
  module Dineromail
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -16,6 +16,9 @@ describe Dineromail::StatusReport do
16
16
  operation.transaction_id.should == 1889
17
17
  operation.date.should == DateTime.ordinal(2011,28,12,2,1)
18
18
  operation.status.should == Dineromail::Operation::PENDING_STATUS
19
+ operation.pending?.should be_true
20
+ operation.completed?.should be_false
21
+ operation.cancelled?.should be_false
19
22
  operation.amount.should == 60.2
20
23
  operation.net_amount.should == 50.3
21
24
  operation.pay_method.should == 'TARJETA DE CREDITO'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dineromail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nicolas Mosconi