Skip to content

Commit 0d4fc66

Browse files
committed
Remove caller location assertions
Fix: #781 Tests are ran a bit differently in ruby/ruby and this assertion breaks.
1 parent a61ff1a commit 0d4fc66

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/json/json_addition_test.rb

+1-6
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,7 @@ def test_core
151151
end
152152

153153
def test_deprecated_load_create_additions
154-
pattern = /json_addition_test\.rb.*use JSON\.unsafe_load/
155-
if RUBY_ENGINE == 'truffleruby'
156-
pattern = /use JSON\.unsafe_load/
157-
end
158-
159-
assert_deprecated_warning(pattern) do
154+
assert_deprecated_warning(/use JSON\.unsafe_load/) do
160155
JSON.load(JSON.dump(Time.now))
161156
end
162157
end

0 commit comments

Comments
 (0)