Sha256: 65ee3d50933bc7770e65f0d1cf904f5acf1d973dcef5e6c5d0e9fad6a72dfd5a
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require 'rspec' require 'spec_helper' describe Scraper::Movies do describe "Scraping the site" do before(:each) do @movies = Scraper::Movies.all(1,1) end it "should return all 10 movies for first page" do expect(@movies.count).to eq(10) end end describe "Scraping a movie" do before(:all) do @movie = Scraper::Movies.all(1,1).first end it "should always return a title" do puts @movie.title expect(@movie.title).not_to be_empty end it "should always return a description" do puts @movie.description expect(@movie.description).not_to be_empty end it "should always return a url" do puts @movie.url expect(@movie.url).not_to be_empty end it "should return genres" do puts @movie.genres end it "should return tags" do puts @movie.tags end it "should return a main image" do puts @movie.main_image end it "should return images" do puts @movie.images end it "should return an imdb url" do puts @movie.imdb end it "should return download links" do puts @movie.download_linksv end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ascraper-0.0.2 | spec/movies_spec.rb |