test/unit/tmdb_cast_test.rb in ruby-tmdb-0.1.2 vs test/unit/tmdb_cast_test.rb in ruby-tmdb-0.1.3
- old
+ new
@@ -4,9 +4,14 @@
def setup
register_api_url_stubs
end
+ test "search that returns no results should create empty array" do
+ movie = TmdbCast.find(:name => "item_not_found")
+ assert_equal [], movie
+ end
+
test "cast data should be able to be dumped and re-loaded" do
assert_nothing_raised do
cast = TmdbCast.find(:id => 287)
TmdbCast.new(cast.raw_data)
end
\ No newline at end of file