poundpay 0.2.3 → 0.2.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.
data/README.rdoc CHANGED
@@ -25,7 +25,7 @@ Poundpay is a payments platform for marketplaces
25
25
  developer_sid: DV8dd93f0f3c6411e0863f00264a09ff3c
26
26
  auth_token: d8c4ea1bafd3fcac8c1062a72c22bcdb09321deb1041df257165cd6449def0de
27
27
 
28
- 4. Create the file initializers/poundpay.rb and add the following
28
+ 4. Create the file config/initializers/poundpay.rb and add the following
29
29
 
30
30
  Poundpay.configure_from_yaml "config/poundpay.yml"
31
31
 
@@ -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'] = 'CANCELED'
53
+ attributes['status'] = 'CANCELLED'
54
54
  save
55
55
  end
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module Poundpay
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -34,9 +34,9 @@ module Poundpay
34
34
  @attributes
35
35
  end
36
36
 
37
- def canceled_payment_attributes
37
+ def cancelled_payment_attributes
38
38
  @attributes = staged_payment_attributes
39
- @attributes["status"] = "CANCELED"
39
+ @attributes["status"] = "CANCELLED"
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 release an ESCROWED payment" do
90
+ it "should cancel an ESCROWED payment" do
91
91
  @escrowed_payment = Payment.new escrowed_payment_attributes
92
- @escrowed_payment.should_receive(:save).and_return(Payment.new canceled_payment_attributes)
92
+ @escrowed_payment.should_receive(:save).and_return(Payment.new cancelled_payment_attributes)
93
93
 
94
94
  @escrowed_payment.cancel
95
- @escrowed_payment.status.should == 'CANCELED'
95
+ @escrowed_payment.status.should == 'CANCELLED'
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
- - 3
9
- version: 0.2.3
8
+ - 4
9
+ version: 0.2.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matin Tamizi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-31 00:00:00 -07:00
17
+ date: 2011-04-01 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency