|
@@ -0,0 +1,8 @@
|
|
|
|
+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')
|
|
|
|
+ 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"}}', FakeWeb.last_request.body
|
|
|
|
+ end
|
|
|
|
+end
|