poundpay 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- 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 +2 -2
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 canceled_payment_attributes
|
38
38
|
@attributes = staged_payment_attributes
|
39
|
-
@attributes["status"] = "
|
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
|
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
|
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 == '
|
95
|
+
@escrowed_payment.status.should == 'CANCELED'
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|