Sha256: 49ef422a93d6151147db553484722ecf2a027bf01c93e50c2652301c0c199af3
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
# test_tv.rb require_relative '../test_helper' describe TMDB::TV do TMDB::API.api_key = API_KEY describe ".search" do it "should return correct results" do shows = TMDB::TV.search(query: 'walking dead') shows.first['name'].must_equal "The Walking Dead" end end describe ".id" do let (:show) { TMDB::TV.id(1402) } it "should return the correct movie" do show.name.must_equal "The Walking Dead" end it "should allow iterating over results with multiple values" do show.genres.first.name.must_equal "Drama" show.genres.last.name.must_equal "Thriller" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tmdb-0.2.0 | test/tmdb/test_tv.rb |