Refactor regexp at assert_method into a constant using a string for interpolation