test/test_brightcove-api.rb in brightcove-api-1.0.5 vs test/test_brightcove-api.rb in brightcove-api-1.0.6

- old
+ new

@@ -10,11 +10,11 @@ def teardown FakeWeb.allow_net_connect = true end def test_api_version - assert_equal '1.0.4', Brightcove::API::VERSION + assert_equal '1.0.6', Brightcove::API::VERSION end def test_can_set_read_api_url brightcove = Brightcove::API.new('apikeytoken') @@ -44,9 +44,16 @@ def test_can_set_http_headers brightcove = Brightcove::API.new('apikeytoken') brightcove.expects(:headers).at_least_once brightcove.set_http_headers({'Accept' => 'application/json'}) + end + + def test_can_set_timeout + brightcove = Brightcove::API.new('apikeytoken') + brightcove.expects(:default_timeout).at_least_once + + brightcove.set_timeout(5) end def test_find_all_videos FakeWeb.register_uri(:get, 'http://api.brightcove.com/services/library?page_size=5&token=0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.&command=find_all_videos',