Sha256: faf2fc8440953db79fc14bba3c1474f12193a2490c70bf5352943ed5a644307d
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
require_relative 'spec_helper' require 'support/fixture_helpers' module Fandango describe Showtime do include FixtureHelpers specify '.parse parses node into Showtime' do html = fixture_file_content('showtimes_amcquailspringsmall24_aaktw_2016_08_01.html') node = Nokogiri.HTML(html).at_css('.showtimes-movie-container') showtime = Showtime.parse(node) showtime.must_equal( datetime: DateTime.parse('2016-08-01T11:30:00-05:00') ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fandango-2.1.0 | spec/showtime.spec.rb |
fandango-2.0.0 | spec/showtime.spec.rb |