poundpay 0.2.4 → 0.2.5

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.
@@ -50,7 +50,7 @@ module Poundpay
50
50
  raise PaymentCancelException.new "Payment status is #{status}. Only ESCROWED payments may be canceled"
51
51
  end
52
52
 
53
- attributes['status'] = 'CANCELLED'
53
+ attributes['status'] = 'CANCELED'
54
54
  save
55
55
  end
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module Poundpay
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -34,9 +34,9 @@ module Poundpay
34
34
  @attributes
35
35
  end
36
36
 
37
- def cancelled_payment_attributes
37
+ def canceled_payment_attributes
38
38
  @attributes = staged_payment_attributes
39
- @attributes["status"] = "CANCELLED"
39
+ @attributes["status"] = "CANCELED"
40
40
  @attributes
41
41
  end
42
42
  end
@@ -87,12 +87,12 @@ describe Payment do
87
87
  expect {@staged_payment.cancel}.to raise_error(PaymentCancelException)
88
88
  end
89
89
 
90
- it "should cancel an ESCROWED payment" do
90
+ it "should release an ESCROWED payment" do
91
91
  @escrowed_payment = Payment.new escrowed_payment_attributes
92
- @escrowed_payment.should_receive(:save).and_return(Payment.new cancelled_payment_attributes)
92
+ @escrowed_payment.should_receive(:save).and_return(Payment.new canceled_payment_attributes)
93
93
 
94
94
  @escrowed_payment.cancel
95
- @escrowed_payment.status.should == 'CANCELLED'
95
+ @escrowed_payment.status.should == 'CANCELED'
96
96
  end
97
97
  end
98
98
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matin Tamizi