activemerchant 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +2 -0
- data/Rakefile +1 -1
- data/test/remote_tests/remote_paypal_test.rb +7 -7
- metadata +3 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -129,35 +129,35 @@ class PaypalTest < Test::Unit::TestCase
|
|
129
129
|
|
130
130
|
def test_successful_transfer
|
131
131
|
response = @gateway.purchase(300, @creditcard, @params)
|
132
|
-
assert_success response
|
132
|
+
assert_success response
|
133
133
|
|
134
134
|
response = @gateway.transfer(300, 'joe@example.com', :subject => 'Your money', :note => 'Thanks for taking care of that')
|
135
|
-
assert_success response
|
135
|
+
assert_success response
|
136
136
|
end
|
137
137
|
|
138
138
|
def test_failed_transfer
|
139
139
|
# paypal allows a max transfer of $10,000
|
140
140
|
response = @gateway.transfer(1000001, 'joe@example.com')
|
141
|
-
assert_failure response
|
141
|
+
assert_failure response
|
142
142
|
end
|
143
143
|
|
144
144
|
def test_successful_multiple_transfer
|
145
145
|
response = @gateway.purchase(900, @creditcard, @params)
|
146
|
-
assert_success response
|
146
|
+
assert_success response
|
147
147
|
|
148
148
|
response = @gateway.transfer([300, 'joe@example.com'],
|
149
149
|
[600, 'jane@example.com', {:note => 'Thanks for taking care of that'}],
|
150
150
|
:subject => 'Your money')
|
151
|
-
assert_success response
|
151
|
+
assert_success response
|
152
152
|
end
|
153
153
|
|
154
154
|
def test_failed_multiple_transfer
|
155
155
|
response = @gateway.purchase(25100, @creditcard, @params)
|
156
|
-
assert_success response
|
156
|
+
assert_success response
|
157
157
|
|
158
158
|
# You can only include up to 250 recipients
|
159
159
|
recipients = (1..251).collect {|i| [100, "person#{i}@example.com"]}
|
160
160
|
response = @gateway.transfer(*recipients)
|
161
|
-
assert_failure response
|
161
|
+
assert_failure response
|
162
162
|
end
|
163
163
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: activemerchant
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.2.
|
7
|
-
date: 2007-09-
|
6
|
+
version: 1.2.1
|
7
|
+
date: 2007-09-23 00:00:00 -04:00
|
8
8
|
summary: Framework and tools for dealing with credit card transactions.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -276,6 +276,7 @@ files:
|
|
276
276
|
- init.rb
|
277
277
|
- lib
|
278
278
|
- MIT-LICENSE
|
279
|
+
- pkg
|
279
280
|
- Rakefile
|
280
281
|
- README
|
281
282
|
- script
|
metadata.gz.sig
CHANGED
Binary file
|