Sha256: 215e51351435fc0210ba4dd351bb08a8678bbc6dc68e37618ef26014e414ab5a
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 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 "Patton Oswalt", @movie.actors.first.name end should "have a role" do assert_equal "Remy", @movie.actors.first.role end end context "directors" do should "have a name" do assert_equal "Brad Bird", @movie.directors.first.name end should "have 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 "have not have a role" do assert_equal nil, @movie.writers.first.role end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
imdb_party-0.3.0 | test/person_test.rb |
imdb_party-0.2.0 | test/person_test.rb |
imdb_party-0.1.0 | test/person_test.rb |