Sha256: a430b7ea2bf1bd76ecdb4da545a86d63d8a5405d4c4d8727b97052be7a65dada

Contents?: true

Size: 398 Bytes

Versions: 18

Compression:

Stored size: 398 Bytes

Contents

require 'test_helper'

class BaseTest < Test::Unit::TestCase
  include ActiveMerchant::Fulfillment

  def test_get_shipwire_by_string
    assert_equal ShipwireService, Base.service('shipwire')
  end

  def test_get_shipwire_by_name
    assert_equal ShipwireService, Base.service(:shipwire)
  end
  
  def test_get_unknown_service
    assert_raise(NameError){ Base.service(:polar_north) }
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
active_fulfillment-2.1.9 test/unit/base_test.rb
active_fulfillment-2.1.8 test/unit/base_test.rb
active_fulfillment-2.1.7 test/unit/base_test.rb
active_fulfillment-2.1.6 test/unit/base_test.rb
active_fulfillment-2.1.5 test/unit/base_test.rb
active_fulfillment-2.1.4 test/unit/base_test.rb
active_fulfillment-2.1.3 test/unit/base_test.rb
active_fulfillment-2.1.2 test/unit/base_test.rb
active_fulfillment-2.1.1 test/unit/base_test.rb
active_fulfillment-2.1.0 test/unit/base_test.rb
active_fulfillment-2.0.2 test/unit/base_test.rb
active_fulfillment-2.0.1 test/unit/base_test.rb
active_fulfillment-2.0.0 test/unit/base_test.rb
active_fulfillment-1.0.3 test/unit/base_test.rb
active_fulfillment-1.0.2 test/unit/base_test.rb
active_fulfillment-1.0.1 test/unit/base_test.rb
active_fulfillment-1.0.0 test/unit/base_test.rb
active_fulfillment-0.10.0 test/unit/base_test.rb