Created
November 7, 2010 18:32
-
-
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'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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