Sha256: 71acb318cab17de538fe72b20597599072c5592edb60ea7e2f5fc2d47d92da66
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
require 'test_helper' class RemotePaypalIntegrationTest < Test::Unit::TestCase include AbtainBilling::Billing::Integrations def setup @paypal = Paypal::Notification.new('') end def tear_down AbtainBilling::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 AbtainBilling::Billing::Base.integration_mode = :production assert @paypal.valid_sender?(nil) assert @paypal.valid_sender?('127.0.0.1') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
abtain_billing-1.03 | test/remote/integrations/remote_paypal_integration_test.rb |
abtain_billing-1.02 | test/remote/integrations/remote_paypal_integration_test.rb |