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-5.0.0 test/carrier_service_test.rb
shopify_api-4.13.0 test/carrier_service_test.rb
shopify_api-4.12.0 test/carrier_service_test.rb
shopify_api-4.11.0 test/carrier_service_test.rb
shopify_api-4.10.0 test/carrier_service_test.rb
shopify_api-4.9.1 test/carrier_service_test.rb
shopify_api-4.9.0 test/carrier_service_test.rb
shopify_api-4.8.0 test/carrier_service_test.rb
shopify_api-4.7.1 test/carrier_service_test.rb
shopify_api-4.7.0 test/carrier_service_test.rb
shopify_api-4.6.0 test/carrier_service_test.rb
shopify_api-4.5.0 test/carrier_service_test.rb
shopify_api-4.4.0 test/carrier_service_test.rb
shopify_api-4.3.9 test/carrier_service_test.rb
shopify_api-4.3.8 test/carrier_service_test.rb
shopify_api-4.3.7 test/carrier_service_test.rb
shopify_api-4.3.6 test/carrier_service_test.rb
shopify_api-4.3.5 test/carrier_service_test.rb
shopify_api-4.3.4 test/carrier_service_test.rb
shopify_api-4.3.3 test/carrier_service_test.rb