Sha256: cd51e018c3c5aa30efe1b70e6dce4b4a15bd81559ee24473d775a7b8dbbe0555

Contents?: true

Size: 458 Bytes

Versions: 8

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'
class TaxServiceTest < Test::Unit::TestCase
  test "tax service creation" do
    fake("tax_services", method: :post, status: 202, body: load_fixture('tax_service'))
    ShopifyAPI::TaxService.create(name: "My Tax Service", url: "https://mytaxservice.com")
    assert_equal(
      '{"tax_service":{"name":"My Tax Service","url":"https://mytaxservice.com"}}',
      WebMock.last_request.body
    )
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

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