spec/imdb_movie_spec.rb in royw-imdb-0.1.5 vs spec/imdb_movie_spec.rb in royw-imdb-0.1.6

- old
+ new

@@ -8,11 +8,10 @@ @imdb_movie = ImdbMovie.new('0050562') @imdb_movie.stub!(:open).and_return(open("#{$samples_dir}/sample_jet_pilot.html")) end it "should query IMDB url" do -# @imdb_movie.should_receive(:open).with("http://www.imdb.com/title/tt0050562/").and_return(open("#{$samples_dir}/sample_jet_pilot.html")) @imdb_movie.should_receive(:fetch).with("http://www.imdb.com/title/tt0050562/").and_return(open("#{$samples_dir}/www.imdb.com/title/tt0050562.html")) @imdb_movie.send(:document) end it "should convert to xml" do @@ -29,18 +28,12 @@ describe 'Indiana Jones and the Last Crusade' do before(:each) do @imdb_movie = ImdbMovie.new('0097576') -# @imdb_movie.stub!(:open).and_return(open("#{$samples_dir}/sample_movie.html")) end -# it "should query IMDB url" do -# @imdb_movie.should_receive(:open).with("http://www.imdb.com/title/tt0097576/").and_return(open("#{$samples_dir}/www.imdb.com/title/tt0097576.html")) -# @imdb_movie.send(:document) -# end - it "should get the title" do @imdb_movie.title.should == "Indiana Jones and the Last Crusade" end it "should get director(s)" do @@ -155,17 +148,10 @@ describe 'Han robado una estrella' do before(:each) do @imdb_movie = ImdbMovie.new('0054961') -# @imdb_movie.stub!(:open).and_return(open("#{$samples_dir}/sample_incomplete_movie.html")) end - -# it "should query IMDB url" do -# @imdb_movie.should_receive(:open).with("http://www.imdb.com/title/tt0054961/").and_return(open("#{$samples_dir}/sample_incomplete_movie.html")) -# @imdb_movie.should_receive(:open).with("http://www.imdb.com/title/tt0054961/").and_return(open("#{$samples_dir}/www.imdb.com/title/tt0054961.html")) -# @imdb_movie.send(:document) -# end it "should get the title" do @imdb_movie.title.should == "Han robado una estrella" end \ No newline at end of file