spec/filmbuff/imdb_spec.rb in filmbuff-0.1.1 vs spec/filmbuff/imdb_spec.rb in filmbuff-0.1.2

- old
+ new

@@ -10,32 +10,22 @@ @imdb.locale.should == "en_US" end end describe "#locale=" do - context "given valid locale" do - it "sets locale to the given value" do - @imdb.locale = "de_DE" - @imdb.locale.should == "de_DE" - end + it "sets locale to the given value" do + @imdb.locale = "de_DE" + @imdb.locale.should == "de_DE" end - - context "given invalid locale" do - it "raises an exception" do - lambda { @imdb.locale = "da_DK" }.should raise_error StandardError - end - end end describe "#find_by_id" do - context "given valid ID" do - before(:all) do - @title = @imdb.find_by_id("tt0032138") - end + before(:all) do + @title = @imdb.find_by_id("tt0032138") + end - it "returns a Title" do - @title.instance_of?(FilmBuff::Title).should be_true - end + it "returns a Title" do + @title.instance_of?(FilmBuff::Title).should be_true end end describe "#find_by_title" do before(:all) do