spec/imdb/search_spec.rb in imdb-0.7.0 vs spec/imdb/search_spec.rb in imdb-0.8.0

- old
+ new

@@ -8,12 +8,12 @@ it "should remember the query" do @search.query.should == "Star Trek: TOS" end - it "should find 2 results" do - @search.movies.size.should eql(2) + it "should find 4 results" do + @search.movies.size.should eql(4) end it "should return Imdb::Movie objects only" do @search.movies.each { |movie| movie.should be_an(Imdb::Movie) } end @@ -28,12 +28,12 @@ end describe "Imdb::Search with an exact match and no poster" do it "should not raise an exception" do - lambda { + expect { @search = Imdb::Search.new("Kannethirey Thondrinal").movies - }.should_not raise_error + }.not_to raise_error end it "should return the movie id correctly" do @search = Imdb::Search.new("Kannethirey Thondrinal") @search.movies.first.id.should eql("0330508")