浏览代码

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

Mike Dalessio 3 年之前
父节点
当前提交
f55ad50863
共有 1 个文件被更改,包括 2 次插入2 次删除
  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