Sha256: 28e90e9cb225ec23941c8e36d2e0cf96592f47f8b591fc6e89ad0a0a757084bf
Contents?: true
Size: 906 Bytes
Versions: 7
Compression:
Stored size: 906 Bytes
Contents
require 'test_helper' class PersonTest < Test::Unit::TestCase context "a person" do setup do @imdb = ImdbParty::Imdb.new @movie = @imdb.find_movie_by_id("tt0382932") end context "actors" do should "have a name" do assert_equal "Brad Garrett", @movie.actors.first.name end should "have a role" do assert_equal "Gusteau", @movie.actors.first.role end end context "directors" do should "have a name" do assert_equal "Brad Bird", @movie.directors.first.name end should "not have a role" do assert_equal nil, @movie.directors.first.role end end context "writers" do should "have a name" do assert_equal "Brad Bird", @movie.writers.first.name end should "not have a role" do assert_equal nil, @movie.writers.first.role end end end end
Version data entries
7 entries across 7 versions & 2 rubygems