Sha256: 56b31cd6a85afa0b46ed658fa97e29d0e5d9ae4e0e7a30628d4b315bb4bb09e1

Contents?: true

Size: 662 Bytes

Versions: 34

Compression:

Stored size: 662 Bytes

Contents

require 'test_helper'

class RemotePaypalIntegrationTest < Test::Unit::TestCase
  include ActiveMerchant::Billing::Integrations

  def setup
    @paypal = Paypal::Notification.new('')
  end

  def tear_down
    ActiveMerchant::Billing::Base.integration_mode = :test
  end
  
  def test_raw
    assert_equal "https://www.sandbox.paypal.com/cgi-bin/webscr", Paypal.service_url
    assert_nothing_raised do
      assert_equal false, @paypal.acknowledge
    end
  end
  
  def test_valid_sender_always_true
    ActiveMerchant::Billing::Base.integration_mode = :production
    assert @paypal.valid_sender?(nil)
    assert @paypal.valid_sender?('127.0.0.1')
  end
end

Version data entries

34 entries across 34 versions & 11 rubygems

Version Path
johnideal-activemerchant-1.4.10 test/remote/integrations/remote_paypal_integration_test.rb
johnideal-activemerchant-1.4.11 test/remote/integrations/remote_paypal_integration_test.rb
johnideal-activemerchant-1.4.4 test/remote/integrations/remote_paypal_integration_test.rb
johnideal-activemerchant-1.4.5 test/remote/integrations/remote_paypal_integration_test.rb
johnideal-activemerchant-1.4.6 test/remote/integrations/remote_paypal_integration_test.rb
johnideal-activemerchant-1.4.7 test/remote/integrations/remote_paypal_integration_test.rb
johnideal-activemerchant-1.4.8 test/remote/integrations/remote_paypal_integration_test.rb
mattbauer-activemerchant-1.4.2 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.3 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.4 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.5 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.6 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.7 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.8 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-tomriley-active_merchant-1.4.2.4 test/remote/integrations/remote_paypal_integration_test.rb
goldstar-activemerchant-1.4.2.7 test/remote/integrations/remote_paypal_integration_test.rb
goldstar-activemerchant-1.4.2.6 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.11 test/remote/integrations/remote_paypal_integration_test.rb
tomriley-active_merchant-1.4.2.10 test/remote/integrations/remote_paypal_integration_test.rb
smulube-activemerchant-1.5.1.4 test/remote/integrations/remote_paypal_integration_test.rb