Sha256: 036c33e8e14c337857b467bc234d1ad0205fb3ec3824bf20f970ef35f8eabbb8

Contents?: true

Size: 761 Bytes

Versions: 9

Compression:

Stored size: 761 Bytes

Contents

# frozen_string_literal: true
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

9 entries across 9 versions & 2 rubygems

Version Path
shopify_api-9.5.2 test/fulfillment_service_test.rb
ruby_shopify_api-1.2.0 test/fulfillment_service_test.rb
ruby_shopify_api-1.1.0 test/fulfillment_service_test.rb
ruby_shopify_api-1.0.0 test/fulfillment_service_test.rb
shopify_api-9.5.1 test/fulfillment_service_test.rb
shopify_api-9.5 test/fulfillment_service_test.rb
shopify_api-9.4.1 test/fulfillment_service_test.rb
shopify_api-9.4.0 test/fulfillment_service_test.rb
shopify_api-9.3.0 test/fulfillment_service_test.rb