Sha256: 8bf7c8150925ade09200feb049741105b70ae853bb2d39bb3dd1bd2574fe8733
Contents?: true
Size: 547 Bytes
Versions: 15
Compression:
Stored size: 547 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe Imdb::Top250 do before(:each) do @movies = Imdb::Top250.new.movies end it "should be a list of movies" do @movies.each { |movie| movie.should be_an_instance_of(Imdb::Movie) } end it "should return the top 250 movies from IMDB.com" do @movies.size.should == 250 end it "should provide array like access to the movies" do @first = @movies.first @first.title.should == "The Shawshank Redemption" @first.genres.should include("Drama") end end
Version data entries
15 entries across 15 versions & 3 rubygems