Sha256: be29d0fd52ab2ff18f42565372897156c66a882510e7aa0d0d4b65283aa6c244
Contents?: true
Size: 714 Bytes
Versions: 4
Compression:
Stored size: 714 Bytes
Contents
require 'test_helper' class DispatcherTest < ChilloutTestCase def test_send_creations filter = mock("Filter") server_side = mock("ServerSide") server_side.expects(:send_creations).with(:creations) dispatcher = Chillout::Dispatcher.new(filter, server_side) dispatcher.send_creations(:creations) end def test_send_creations_raise_exception_if_server_side_failed_to_send_request server_side = stub() server_side.stubs(:send_creations).raises(Chillout::HttpClient::NotSent.new(:http_error)) dispatcher = Chillout::Dispatcher.new(mock, server_side) assert_raises Chillout::Dispatcher::SendCreationsFailed do dispatcher.send_creations(:creations) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chillout-0.5.0 | test/dispatcher_test.rb |
chillout-0.4.1 | test/dispatcher_test.rb |
chillout-0.4.0 | test/dispatcher_test.rb |
chillout-0.3.0 | test/dispatcher_test.rb |