activemerchant 1.2.0 → 1.2.1

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.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,5 +1,7 @@
1
1
  # CHANGELOG
2
2
  # ---
3
+ # * Fix remote PayPal tests [cody]
4
+ #
3
5
  # * Update Linkpoint tests to remove useless pem file [cody]
4
6
  #
5
7
  # * Use symbols for CreditCard error messages, since errors have indifferent access [cody]
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require File.dirname(__FILE__) + '/lib/tasks/cia'
8
8
  require File.dirname(__FILE__) + '/lib/support/gateway_support'
9
9
 
10
10
 
11
- PKG_VERSION = "1.2.0"
11
+ PKG_VERSION = "1.2.1"
12
12
  PKG_NAME = "activemerchant"
13
13
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14
14
 
@@ -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, response.message
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, response.message
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, response.message
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, response.message
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, response.message
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, response.message
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, response.message
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.0
7
- date: 2007-09-20 00:00:00 -04:00
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