travishaynes / shopify-mock

Serves Shopify resources via FakeWeb for easily testing Shopify apps.
35 stars 23 forks source link

README example gives `undefined method `<<' for Hash` after release of Shopify API versioning #13

Open colinsoleim opened 5 years ago

colinsoleim commented 5 years ago

Shopify recently rolled out API versioning (https://www.shopify.com/partners/blog/api-versioning-at-shopify), and the example in the README now gives the following error ArgumentError (wrong number of arguments (given 2, expected 0; required keywords: domain, token, api_version)).

If you change the example to use keyword arguments, the command then gives the following error NoMethodError (undefined method<<' for #)`.

Steps to reproduce

rails new shopify-mock-test gem install shopify-mock rails c -e test order = ShopifyAPI::Session.temp("test", "randomtoken") { ShopifyAPI::Order.first }

ogonki-vetochki commented 3 years ago

@colinsoleim Fetching fakeweb gem directly from Github worked for me: https://github.com/Shopify/shopify_app/issues/476#issuecomment-332137371