Built 44418d7 successfully

Updated history for 0.6

by: Luke Redpath | on Jun 25th | commit: 44418d7795cfd38f1b1c9e3279c9c2f8e3e9c7e2

Build Output:

/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
(in /home/luke/apps/integrity/builds/lukeredpath-clickatell-master)

Hash
- should return only the keys specified
- should return only the keys specified, ignoring keys that do not exist

API::CommandExecutor
- should have test mode
- should default to not test mode

API::CommandExecutor#execute in non-test mode
- should not record requests

API::CommandExecutor#execute in test mode
- should not make any network calls
- should start with an empty request collection
- should record sms requests
- should record a request for each call
- should return a response that approximates a true Net::HttpResponse

API::CommandExecutor#execute in test mode each recorded request
- should return the command information

API Command
- should return encoded URL for the specified command and parameters
- should URL encode any special characters in parameters
- should use a custom host when constructing command URLs if specified
- should use the default host if specified custom host is nil
- should use the default host if specified custom host is an empty string

Secure API Command
- should use HTTPS

Command executor
- should create an API command with the given params
- should send the URI generated by the created command via HTTP get and return the response
- should send the command over a secure HTTPS connection if :secure option is set to true

API
- should use the api_id, username and password to authenticate and return the new session id
- should support ping, using the current session_id
- should support sending messages to a specified number, returning the message id
- should set the :from parameter and set the :req_feat to 48 when using a custom from string when sending a message
- should set the :mo flag to 1 when :set_mobile_originated is true when sending a message
- should set the callback flag to the number passed in the options hash
- should ignore any invalid parameters when sending a message
- should support message status query for a given message id, returning the message status
- should support balance query, returning number of credits as a float
- should raise an API::Error if the response parser raises

Clickatell::API when authenticating
- should authenticate to retrieve a session_id and return a new API instance using that session id

Clickatell::API with no authentication options set
- should build commands with no authentication options

Clickatell::API in secure mode
- should execute commands securely

API Error
- should parse http response string to create error

Clickatell::API#test_mode
- should create a new CommandExecutor with test_mode parameter set to true
- should record all commands
- should return the recorded commands in a flattened array

Response parser
- should return hash for one-line success response
- should raise API::Error if response contains an error message

Response parser in test mode
- should return something approximating a session_id

Finished in 0.033455 seconds

40 examples, 0 failures