tax_service_test.rb 424 B

123456789
  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 '{"tax_service":{"name":"My Tax Service","url":"https://mytaxservice.com"}}', WebMock.last_request.body
  7. end
  8. end