Sha256: 246963078645bccf6cf5dbf5e1aeccc88241bea7f29dbae905a25815d7967981

Contents?: true

Size: 707 Bytes

Versions: 63

Compression:

Stored size: 707 Bytes

Contents

require 'test_helper'

class CarrierServiceTest < Test::Unit::TestCase
  test 'new should create carrier service' do
    fake "carrier_services", :method => :post, :body => load_fixture('carrier_service')
    carrier_service = ShopifyAPI::CarrierService.new(:name => "Some Postal Service")
    carrier_service.save
    assert_equal "Some Postal Service" , carrier_service.name
  end

  test 'find should return the carrier service' do
    fake "carrier_services/123456", :method => :get, :body => load_fixture('carrier_service')
    carrier_service = ShopifyAPI::CarrierService.find(123456)
    assert_equal 123456 , carrier_service.id
    assert_equal "Some Postal Service", carrier_service.name
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
shopify_api-4.3.2 test/carrier_service_test.rb
shopify_api-4.3.1 test/carrier_service_test.rb
shopify_api-4.3.0 test/carrier_service_test.rb
shopify_api-4.2.2 test/carrier_service_test.rb
shopify_api-4.2.1 test/carrier_service_test.rb
shopify_api-4.2.0 test/carrier_service_test.rb
shopify_api-4.1.1 test/carrier_service_test.rb
shopify_api-4.1.0 test/carrier_service_test.rb
shopify_api-4.0.7 test/carrier_service_test.rb
shopify_api-4.0.6 test/carrier_service_test.rb
shopify_api-4.0.5 test/carrier_service_test.rb
shopify_api-4.0.4 test/carrier_service_test.rb
shopify_api-4.0.3 test/carrier_service_test.rb
shopify_api-4.0.2 test/carrier_service_test.rb
shopify_api-4.0.1 test/carrier_service_test.rb
shopify_api-4.0.0 test/carrier_service_test.rb
shopify_api-3.2.7 test/carrier_service_test.rb
shopify_api-3.2.6 test/carrier_service_test.rb
shopify_api-3.2.5 test/carrier_service_test.rb
shopify_api-3.2.4 test/carrier_service_test.rb