Sha256: 1cdb3200342216826ef16d6c1d9d804dee9440c4328e1be5fbfb76784be37a2f
Contents?: true
Size: 551 Bytes
Versions: 1
Compression:
Stored size: 551 Bytes
Contents
require 'spec_helper' describe Fandango::Movie do specify '.parse parses RSS item into array of movie attribute hashes' do description_node = description_node_from_fixture_file('item.html') array = Fandango::Movie.parse(description_node) array.must_equal [ { title: 'Abraham Lincoln: Vampire Hunter', id: '141897', }, { title: 'The Amazing Spider-Man 3D', id: '141122', }, { title: 'The Amazing Spider-Man', id: '126975', }, ] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fandango-1.0.0 | spec/movie.spec.rb |