Sha256: 18f8b790f1bb8d6646ccbb1acc602889f5859d67bcaa7d10d061becc6e7e6114
Contents?: true
Size: 830 Bytes
Versions: 2
Compression:
Stored size: 830 Bytes
Contents
require 'test_helper' class PaypalModuleTest < Test::Unit::TestCase include AbtainBilling::Billing::Integrations def test_notification_method assert_instance_of Paypal::Notification, Paypal.notification('name=cody') end def test_test_mode AbtainBilling::Billing::Base.integration_mode = :test assert_equal 'https://www.sandbox.paypal.com/cgi-bin/webscr', Paypal.service_url end def test_production_mode AbtainBilling::Billing::Base.integration_mode = :production assert_equal 'https://www.paypal.com/cgi-bin/webscr', Paypal.service_url end def test_invalid_mode AbtainBilling::Billing::Base.integration_mode = :zoomin assert_raise(StandardError){ Paypal.service_url } end def test_return_method assert_instance_of Paypal::Return, Paypal.return('name=cody') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
abtain_billing-1.03 | test/unit/integrations/paypal_module_test.rb |
abtain_billing-1.02 | test/unit/integrations/paypal_module_test.rb |