added in suggested code to fix ruby bug for test spec responce