poundpay 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/poundpay/elements.rb +1 -1
- data/lib/poundpay/version.rb +1 -1
- data/spec/fixtures/payments.rb +2 -2
- data/spec/poundpay/elements_spec.rb +3 -3
- metadata +3 -3
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
|
|
data/lib/poundpay/elements.rb
CHANGED
data/lib/poundpay/version.rb
CHANGED
data/spec/fixtures/payments.rb
CHANGED
@@ -34,9 +34,9 @@ module Poundpay
|
|
34
34
|
@attributes
|
35
35
|
end
|
36
36
|
|
37
|
-
def
|
37
|
+
def cancelled_payment_attributes
|
38
38
|
@attributes = staged_payment_attributes
|
39
|
-
@attributes["status"] = "
|
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
|
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
|
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 == '
|
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
|
-
-
|
9
|
-
version: 0.2.
|
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-
|
17
|
+
date: 2011-04-01 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|