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-9.2.0 test/carrier_service_test.rb
shopify_api-9.1.0 test/carrier_service_test.rb
shopify_api-9.0.4 test/carrier_service_test.rb
shopify_api-9.0.3 test/carrier_service_test.rb
shopify_api-9.0.2 test/carrier_service_test.rb
shopify_api-9.0.1 test/carrier_service_test.rb
shopify_api-9.0.0 test/carrier_service_test.rb
shopify_api-8.1.0 test/carrier_service_test.rb
shopify_api-8.0.0 test/carrier_service_test.rb
shopify_api-7.1.0 test/carrier_service_test.rb
shopify_api-7.0.2 test/carrier_service_test.rb
shopify_api-7.0.1 test/carrier_service_test.rb
shopify_api-7.0.0 test/carrier_service_test.rb
shopify_api-6.0.0 test/carrier_service_test.rb
shopify_api-5.2.4 test/carrier_service_test.rb
shopify_api-5.2.3 test/carrier_service_test.rb
shopify_api-5.2.2 test/carrier_service_test.rb
shopify_api-5.2.1 test/carrier_service_test.rb
shopify_api-5.2.0 test/carrier_service_test.rb
shopify_api-5.1.0 test/carrier_service_test.rb