shopify-mock
shopify-mock copied to clipboard
README example gives `undefined method `<<' for Hash` after release of Shopify API versioning
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 #Hash:0x00007f861ca21968)`.
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 }
@colinsoleim
Fetching fakeweb
gem directly from Github worked for me:
https://github.com/Shopify/shopify_app/issues/476#issuecomment-332137371