tax_service_test.rb 429 B

123456789101112
  1. require 'test_helper'
  2. class TaxServiceTest < Test::Unit::TestCase
  3. test "tax service creation" do
  4. fake("tax_services", method: :post, status: 202, body: load_fixture('tax_service'))
  5. ShopifyAPI::TaxService.create(name: "My Tax Service", url: "https://mytaxservice.com")
  6. assert_equal(
  7. '{"tax_service":{"name":"My Tax Service","url":"https://mytaxservice.com"}}',
  8. WebMock.last_request.body
  9. )
  10. end
  11. end