Built 0a68d4f and failed
Regenerated gemspec for version 0.8.1
Build Output:
(in /home/luke/apps/integrity/builds/lukeredpath-clickatell-master)
Jeweler not available. Install it with: gem install jeweler
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 non-test mode without a proxy
- should execute commands through the proxy
API::CommandExecutor#execute in non-test mode with a proxy
- should execute commands through the proxy
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 (FAILED - 1)
- should send the command over a secure HTTPS connection if :secure option is set to true (FAILED - 2)
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 support sending messages to a multiple numbers, returning the message ids
- 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 set the client message id 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 return array of hashes for multi-line success response
- should raise API::Error if response contains an error message
- should parse a message status code of 6 when the response body contains a status code of 006
- should parse a message status code of 7 when the response body contains a status code of 007
- should parse a message status code of 8 when the response body contains a status code of 008
- should parse a message status code of 9 when the response body contains a status code of 009
- should parse a message status code of 10 when the response body contains a status code of 010
- should parse a message status code of 11 when the response body contains a status code of 011
- should parse a message status code of 12 when the response body contains a status code of 012
- should parse a message status code of 1 when the response body contains a status code of 001
- should parse a message status code of 2 when the response body contains a status code of 002
- should parse a message status code of 3 when the response body contains a status code of 003
- should parse a message status code of 4 when the response body contains a status code of 004
- should parse a message status code of 5 when the response body contains a status code of 005
Response parser in test mode
- should return something approximating a session_id
1)
Mocha::ExpectationError in 'Command executor should send the URI generated by the created command via HTTP get and return the response'
unexpected invocation: #<Class:0xb7938034>.new('clickatell.com', nil, nil, nil, nil, nil)
satisfied expectations:
- allowed any number of times, already invoked once: Clickatell::API::Command.new(any_parameters)
- allowed any number of times, already invoked once: #<Mock:Command>.with_params(any_parameters)
- allowed any number of times, not yet invoked: Net::HTTP.new('clickatell.com', 8080)
- allowed any number of times, not yet invoked: #<FakeHttp:0xb79395ec>.get('/path?foo=bar')
- allowed any number of times, not yet invoked: #<FakeHttp:0xb79395ec>.use_ssl=(any_parameters)
./spec/../lib/clickatell/api/command_executor.rb:57:in `get_response'
./spec/../lib/clickatell/api/command_executor.rb:34:in `execute'
./spec/api_spec.rb:77:
2)
Mocha::ExpectationError in 'Command executor should send the command over a secure HTTPS connection if :secure option is set to true'
unexpected invocation: #<Class:0xb7933020>.new('api.clickatell.com', nil, nil, nil, nil, nil)
unsatisfied expectations:
- expected exactly once, not yet invoked: #<Mock:HTTP>.use_ssl=(true)
satisfied expectations:
- allowed any number of times, not yet invoked: Net::HTTP.new(any_parameters)
- allowed any number of times, not yet invoked: #<Mock:HTTP>.start(any_parameters)
./spec/../lib/clickatell/api/command_executor.rb:57:in `get_response'
./spec/../lib/clickatell/api/command_executor.rb:34:in `execute'
./spec/api_spec.rb:85:
Finished in 0.049806 seconds
57 examples, 2 failures
rake aborted!
Command /usr/bin/ruby1.8 -I"spec" "/usr/lib/ruby/gems/1.8/gems/rspec-1.2.7/bin/spec" "spec/hash_ext_spec.rb" "spec/command_executor_spec.rb" "spec/api_spec.rb" "spec/response_spec.rb" --format specdoc --colour failed
(See full trace by running task with --trace)
Previous builds
- Build 42d6617 by Luke Redpath, on Aug 13th
- Build 84a59c6 by Luke Redpath, on Aug 13th
- Build 5987fc0 by Luke Redpath, on Jul 26th
- Build 3988651 by Luke Redpath, on Jul 26th
- Build 9594681 by Luke Redpath, on Jul 26th
- Build 49d1e8c by Josh Bassett, on Jul 26th
- Build 121fb8a by Josh Bassett, on Jul 26th
- Build f4f2410 by Sean Kibler, on Jul 26th
- Build 4641e71 by Ahmed Al Hafoudh, on Jul 26th
- Build 7e9ba27 by Ahmed Al Hafoudh, on Jul 26th
- Build e65b3f3 by Sean Kibler, on Feb 26th
- Build 64e505b by Luke Redpath, on Dec 01st
- Build dffd931 by Luke Redpath, on Dec 01st
- Build 83575e5 by Luke Redpath, on Dec 01st
- Build 4853a26 by Luke Redpath, on Dec 01st
- Build ad5bee0 by Luke Redpath, on Dec 01st
- Build 5d3031b by Luke Redpath, on Dec 01st
- Build 69f7b3f by Luke Redpath, on Dec 01st
- Build a78407f by Luke Redpath, on Dec 01st
- Build b2bc2a8 by Luke Redpath, on Dec 01st
- Build 268e175 by Luke Redpath, on Oct 07th
- Build 23cb927 by Luke Redpath, on Oct 07th
- Build 1248143 by Luke Redpath, on Oct 07th
- Build 6a7713e by Luke Redpath, on Oct 07th
- Build 6f956ca by Luke Redpath, on Oct 06th
- Build a5b8cae by Luke Redpath, on Oct 06th
- Build f98ff1f by Luke Redpath, on Oct 06th
- Build 2dba0e6 by Luke Redpath, on Jun 25th
- Build 7d38102 by Luke Redpath, on Jun 25th
- Build 467ca49 by Luke Redpath, on Jun 25th
- Build 7c55374 by Luke Redpath, on Jun 25th
- Build 08e7fa7 by Luke Redpath, on Jun 25th
- Build 6c1cad1 by Luke Redpath, on Jun 25th
- Build 44418d7 by Luke Redpath, on Jun 25th
- Build f3431ba by Luke Redpath, on Jun 25th
- Build a3a6b33 by Tom Brice, on Jun 25th
- Build 8e83374 by Luke Redpath, on Sep 26th
- Build 8e83374 by Luke Redpath, on Sep 26th