Sha256: 4ed3540673e55e092622dfe460d30484a744bc53fe0fe8840f158dfd943f0c8c
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
require_relative 'spec_helper' require 'support/fixture_helpers' module Fandango describe Movie do include FixtureHelpers specify '.parse parses RSS item into array of movie atts' do xml = fixture_file_content('movies_near_me_73142.rss') cdata = Nokogiri.XML(xml).at_css('item').at_css('description') li = Nokogiri.HTML(cdata.content).at_css('li') movies = Movie.parse(li) movies.must_equal( title: 'Abraham Lincoln: Vampire Hunter', id: '141897', ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fandango-2.1.0 | spec/movie.spec.rb |
fandango-2.0.0 | spec/movie.spec.rb |