Sha256: 5eca2564ec18fea00e9dd23fd7cc9f97b02d663ae90464d3f9608b44a55e72f8

Contents?: true

Size: 840 Bytes

Versions: 1

Compression:

Stored size: 840 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 "#locale" do
    it "returns the locale" do
      @imdb.locale.should == "en_US"
    end
  end

  describe "#locale=" do
    it "sets locale to the given value" do
      @imdb.locale = "de_DE"
      @imdb.locale.should == "de_DE"
    end
  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

1 entries across 1 versions & 1 rubygems

Version Path
filmbuff-0.1.2 spec/filmbuff/imdb_spec.rb