Skip to content

Instantly share code, notes, and snippets.

@cheeyeo
Created November 7, 2010 18:32
Show Gist options
  • Save cheeyeo/666308 to your computer and use it in GitHub Desktop.
Save cheeyeo/666308 to your computer and use it in GitHub Desktop.
This is the file where WebMock keeps pointing to 'Can't convert string to hash'
@httpresponse ||= http_class.new("http://#{AmazeSNS.host}/?").get({
:query => querystring2, :timeout => 2
})
@httpresponse.callback{
begin
success_callback
deferrable.succeed
rescue => e
deferrable.fail(e)
end
}
@httpresponse.errback{
error_callback
deferrable.fail(AmazeSNSRuntimeError.new("A runtime error has occured: status code: #{@httpresponse.response_header.status}"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment