Browse Source

Raise error when shop url is blank (fixed test)

Julie Hache 15 years ago
parent
commit
012b75efb0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/shopify_api.rb

+ 1 - 0
lib/shopify_api.rb

@@ -120,6 +120,7 @@ module ShopifyAPI
     end
 
     def initialize(url, token = nil, params = nil)
+      raise ArgumentError, "A valid Shopify shop URL must be provided" if url.blank?
       self.url, self.token = url, token
 
       if params && params[:signature]