Skip to content

Commit

Permalink
Fixed dependency on ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowcoder committed Jul 31, 2012
1 parent 192f497 commit 17747b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/active_merchant/billing/gateways/paypal_bogus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ class PaypalBogusGateway < BogusGateway
def setup_authorization money, options = {}
requires!(options, :return_url, :cancel_return_url)

PaypalExpressResponse.new true, SUCCESS_MESSAGE, { Token: AUTHORIZATION }, test: true
PaypalExpressResponse.new true, SUCCESS_MESSAGE, { :Token => AUTHORIZATION }, test: true
end

def setup_purchase money, options = {}
requires!(options, :return_url, :cancel_return_url)

PaypalExpressResponse.new true, SUCCESS_MESSAGE, { Token: AUTHORIZATION }, test: true
PaypalExpressResponse.new true, SUCCESS_MESSAGE, { :Token => AUTHORIZATION }, test: true
end

def authorize money, options = {}
Expand Down
8 changes: 4 additions & 4 deletions test/unit/gateways/paypal_bogus_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def setup

def test_setup_authorization
assert_raise(ArgumentError) { @gateway.setup_authorization 1000 }
assert @gateway.setup_authorization(1000, { cancel_return_url: @cancel_return_url,
return_url: @return_url }).success?
assert @gateway.setup_authorization(1000, { :cancel_return_url => @cancel_return_url,
:return_url => @return_url }).success?
end

def test_redirect_url_for
Expand All @@ -22,8 +22,8 @@ def test_redirect_url_for

def authorize
assert_raise(ArgumentError) { @gateway.authorize 1000 }
assert !@gateway.authorize(1000, { token: '1', payer_id: '42' }).success?
assert @gateway.authorize(1000, { token: '2', payer_id: '42' }).success?
assert !@gateway.authorize(1000, { :token => '1', :payer_id => '42' }).success?
assert @gateway.authorize(1000, { :token => '2', :payer_id => '42' }).success?
end

end

0 comments on commit 17747b9

Please sign in to comment.