Browse Source

Style updates

Scott Walkinshaw 6 years ago
parent
commit
b6ba773770
2 changed files with 3 additions and 4 deletions
  1. 1 2
      lib/shopify_api/limits.rb
  2. 2 2
      test/limits_test.rb

+ 1 - 2
lib/shopify_api/limits.rb

@@ -7,12 +7,11 @@ module ShopifyAPI
     end
 
     module ClassMethods
-
       # Takes form <call count>/<bucket size>
       # See https://help.shopify.com/en/api/getting-started/api-call-limit
       # Eg: 2/40
       CREDIT_LIMIT_HEADER_PARAM = {
-        :shop => 'X-Shopify-Shop-Api-Call-Limit'
+        shop: 'X-Shopify-Shop-Api-Call-Limit',
       }
 
       ##

+ 2 - 2
test/limits_test.rb

@@ -3,7 +3,7 @@ require 'test_helper'
 class LimitsTest < Test::Unit::TestCase
   def setup
     super
-    @header_hash = {'X-Shopify-Shop-Api-Call-Limit' => '100/300'}
+    @header_hash = { 'X-Shopify-Shop-Api-Call-Limit' => '100/300' }
     ShopifyAPI::Base.connection.expects(:response).at_least(0).returns(@header_hash)
   end
 
@@ -22,7 +22,7 @@ class LimitsTest < Test::Unit::TestCase
 
     should "flag maxed out credits" do
       assert !ShopifyAPI.maxed?
-      @header_hash = {'X-Shopify-Shop-Api-Call-Limit' => '299/300'}
+      @header_hash = { 'X-Shopify-Shop-Api-Call-Limit' => '299/300' }
       ShopifyAPI::Base.connection.expects(:response).at_least(1).returns(@header_hash)
       assert ShopifyAPI.maxed?
     end