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

Version Path
cschiewek-imdb-0.5.1 spec/imdb/top_250_spec.rb
imdb_parser-1.0.3 spec/imdb/top_250_spec.rb
imdb_parser-0.6.6 spec/imdb/top_250_spec.rb
imdb_parser-1.0.2 spec/imdb/top_250_spec.rb
imdb_parser-1.0.1 spec/imdb/top_250_spec.rb
imdb_parser-1.0.0 spec/imdb/top_250_spec.rb
imdb-0.6.6 spec/imdb/top_250_spec.rb
imdb-0.6.5 spec/imdb/top_250_spec.rb
imdb-0.6.4 spec/imdb/top_250_spec.rb
imdb-0.6.3 spec/imdb/top_250_spec.rb
imdb-0.6.2 spec/imdb/top_250_spec.rb
imdb-0.6.1 spec/imdb/top_250_spec.rb
imdb-0.6.0 spec/imdb/top_250_spec.rb
imdb-0.5.1 spec/imdb/top_250_spec.rb
imdb-0.5.0 spec/imdb/top_250_spec.rb