Sha256: b7290f83edcea5297598061215e47757b9fc91039432f49b61338a3c54656034

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper'))

describe FilmBuff::IMDb do
  before(:all) do
    @imdb = FilmBuff::IMDb.new
  end

  describe "#find_by_id" do
    before(:all) do
      @title = @imdb.find_by_id("tt0032138")
    end

    it "returns a Title" do
      @title.instance_of?(FilmBuff::Title).should be_true
    end
  end

  describe "#find_by_title" do
    before(:all) do
      @title = @imdb.find_by_title("The Wizard of Oz")
    end

    it "returns a Title" do
      @title.instance_of?(FilmBuff::Title).should be_true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
filmbuff-0.1.6 spec/filmbuff/imdb_spec.rb
filmbuff-0.1.5 spec/filmbuff/imdb_spec.rb