Sha256: ec1acbc9f9efb670032e3956814fd5537315869ee54a807f997b6cf74568e1c8

Contents?: true

Size: 370 Bytes

Versions: 18

Compression:

Stored size: 370 Bytes

Contents

require 'test_helper'

module Chillout
  class HttpClientTest < ChilloutTestCase
    def test_post_raises_not_sent_exception_when_get_any_error
      logger = stub(:error => nil)
      http_client = HttpClient.new(:wrong_config, logger)
      assert_raises HttpClient::NotSent do
        http_client.post("/events", {:fake_data => "client"})
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
chillout-0.8.9 test/http_client_test.rb
chillout-0.8.5.1 test/http_client_test.rb
chillout-0.8.8 test/http_client_test.rb
chillout-0.8.7 test/http_client_test.rb
chillout-0.8.6 test/http_client_test.rb
chillout-0.8.5 test/http_client_test.rb
chillout-0.8.4 test/http_client_test.rb
chillout-0.8.3 test/http_client_test.rb
chillout-0.8.2 test/http_client_test.rb
chillout-0.8.1 test/http_client_test.rb
chillout-0.8.0 test/http_client_test.rb
chillout-0.6.0 test/http_client_test.rb
chillout-0.5.4 test/http_client_test.rb
chillout-0.5.3 test/http_client_test.rb
chillout-0.5.2 test/http_client_test.rb
chillout-0.5.1 test/http_client_test.rb
chillout-0.5.0 test/http_client_test.rb
chillout-0.4.1 test/http_client_test.rb