Skip to content

Commit 35a143b

Browse files
committed
json_creatable? was removed in json 2.11.0
1 parent ddfc76f commit 35a143b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/ruby/security/cve_2020_10663_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def to_json(*args)
2121

2222
guard -> {
2323
JSON.const_defined?(:Pure) or
24-
version_is(JSON::VERSION, '2.3.0')
24+
version_is(JSON::VERSION, '2.3.0'..'2.11.0')
2525
} do
2626
describe "CVE-2020-10663 is resisted by" do
2727
it "only creating custom objects if passed create_additions: true or using JSON.load" do

0 commit comments

Comments
 (0)