Sha256: cb22b8ba2a8fb2889a545d2b58e23ee2108a8d6b14db3484e4317c857faf91c8
Contents?: true
Size: 761 Bytes
Versions: 9
Compression:
Stored size: 761 Bytes
Contents
require 'spec_helper' describe Fandango do describe '.movies_near' do it 'returns hash of theaters and movies playing at each' do stub_feed 'movies_near_me_73142.rss' array = Fandango.movies_near(73142) array.size.must_equal 11 hash = array.first # Check theater attributes. theater_atts = hash[:theater] theater_atts[:name].must_equal 'Northpark 7' theater_atts[:id].must_equal 'aaicu' theater_atts[:address].must_equal '12100 N. May Ave Oklahoma City, OK 73120' theater_atts[:postal_code].must_equal '73120' # Check movie attributes. movies_atts = hash[:movies] movies_atts.size.must_equal 8 movies_atts.first[:title].must_equal 'Happy Feet Two' end end end
Version data entries
9 entries across 9 versions & 1 rubygems