Sha256: 1dbb2fc121f965585784fec3158582ab47a909a64442f538bbe218da223cd464

Contents?: true

Size: 723 Bytes

Versions: 64

Compression:

Stored size: 723 Bytes

Contents

require 'test_helper'

class FulFillmentServiceTest < Test::Unit::TestCase
	test 'new should create fulfillment service' do
		fake "fulfillment_services", :method => :post, :body => load_fixture('fulfillment_service')
		fulfillment_service = ShopifyAPI::FulfillmentService.new(:name => "SomeService")
		fulfillment_service.save
		assert_equal "SomeService" , fulfillment_service.name
	end

	test 'find should return the fulfillment service' do
		fake "fulfillment_services/123456", :method => :get, :body => load_fixture('fulfillment_service')
		fulfillment_service = ShopifyAPI::FulfillmentService.find(123456)
		assert_equal 123456 , fulfillment_service.id
		assert_equal "SomeService", fulfillment_service.name
	end
end

Version data entries

64 entries across 64 versions & 1 rubygems

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