Sha256: e6cd4d1bc3e8b34c3bac6e8146306b7a182658a39963ece4f266e6ca8dda5a68

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

require File.dirname(__FILE__) + '/../../test_helper'

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

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

  def tear_down
    MerbMerchant::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
    MerbMerchant::Billing::Base.integration_mode = :production
    assert @paypal.valid_sender?(nil)
    assert @paypal.valid_sender?('127.0.0.1')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merb_merchant-1.4.1 test/remote/integrations/remote_paypal_integration_test.rb