The tests that use the test_headers method generate warnings, and the activesupport tests that use json don't. The only difference I could see is the AS test use to_json instead of JSON.dump. When I changed it the warning went away.