Browse Source

fix: update test to handle activeresource.to_json in Ruby 3.0

Mike Dalessio 2 years ago
parent
commit
f55ad50863
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/meta_test.rb

+ 2 - 2
test/meta_test.rb

@@ -40,8 +40,8 @@ class ApiVersionTest < Test::Unit::TestCase
         "display_name": "unstable",
         "supported": false,
       },
-    ].to_json
+    ].as_json
 
-    assert_equal versions, ShopifyAPI::Meta.admin_versions.to_json
+    assert_equal versions, ShopifyAPI::Meta.admin_versions.as_json
   end
 end