You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: serializers_test.rb
    path of file: ./repos/sinja/test/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require_relative 'test_helper'

class SerializersApp < MyAppBase
  before do
    env['sinja.passthru'] = true # let exce
    
  def test_error_hash_keywords
    post '/error_hash', JSON.generate(:detail=>'foo bar')
    assert last_response.ok?
    assert_equal 1, json.length
    assert_equal [:id, :detail, :status], json.first.keys
    assert_match %r{[\w-]{10,}}, json.first[:id]
    assert_equal '200', json.first[:status]
    assert_equal 'foo bar', json.first[:detail]

    assert_raises ArgumentError do
      post '/error_hash', JSON.generate(:nonsense=>'ignore')
    end
  end