Jelajahi Sumber

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

Mike Dalessio 3 tahun lalu
induk
melakukan
f55ad50863
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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