Sha256: ba142a6ae0bb61fa7d9bef3132109f477245730bddc26ca0aa83ebdb2d89548e
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
require 'test/unit' require 'yahoo-video' require File.dirname(__FILE__) + '/video_test_helper' class TestClient < Test::Unit::TestCase include VideoTestHelper def test_validation # make sure we can do basic client instantiation assert_nothing_raised do @client = YahooVideo::Client.new APP_ID end # make sure we get an error if we specify a bad api url assert_raise YahooVideo::YahooVideoException do @client = YahooVideo::Client.new APP_ID, 'http://nO)domain#!badbadbad' request = YahooVideo::SearchRequest.new :query => 'chicken' @client.search request end # TODO: test specifying a custom user agent end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yahoo-video-0.1.0 | test/test_client.rb |