class WebMock::Response
def options=(options)
def options=(options) options = WebMock::Util::HashKeysStringifier.stringify_keys!(options) HashValidator.new(options).validate_keys('headers', 'status', 'body', 'exception', 'should_timeout') self.headers = options['headers'] self.status = options['status'] self.body = options['body'] self.exception = options['exception'] @should_timeout = options['should_timeout'] end