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