Browse Source

Adding spaces after commas in hash

Ben Cox 11 years ago
parent
commit
31b5f5715f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      test/order_test.rb
  2. 1 1
      test/webhook_test.rb

+ 1 - 1
test/order_test.rb

@@ -4,7 +4,7 @@ class OrderTest < Test::Unit::TestCase
 
   test "create should create order" do
     fake 'orders', :method => :post, :status => 201, :body => load_fixture('order')
-    order = ShopifyAPI::Order.create(line_items: [{quantity:1,variant_id:39072856}],financial_status:"authorized")
+    order = ShopifyAPI::Order.create(line_items: [{quantity:1, variant_id:39072856}], financial_status:"authorized")
     assert_equal 39072856, order.line_items.first.variant_id
   end
 

+ 1 - 1
test/webhook_test.rb

@@ -3,7 +3,7 @@ require 'test_helper'
 class WebhookTest < Test::Unit::TestCase
   test 'create should create a webhook' do
     fake 'webhooks', :method => :post, :status => 201, :body => load_fixture('webhook')
-    webhook = ShopifyAPI::Webhook.create(address: "http://www.yoloship.it/webhook",topic: "orders/create",format: "json")
+    webhook = ShopifyAPI::Webhook.create(address: "http://www.yoloship.it/webhook", topic: "orders/create", format: "json")
     assert_equal "http://www.yoloship.it/webhook", webhook.address
   end