Sha256: 2397f4e8a0775f3a28393f565b8fa5c0bba3114dc62fa227c6b7fe303f2d19dd
Contents?: true
Size: 1.17 KB
Versions: 6
Compression:
Stored size: 1.17 KB
Contents
require File.expand_path('../../lib/picturehouse_uk.rb', __FILE__) def fixture(name) File.expand_path("../fixtures/#{name}.html", __FILE__) end File.open(fixture('home'), 'w') do |file| puts '* Homepage' file.write PicturehouseUk::Internal::Website.new.home end # DUKE OF YORKS File.open(fixture('cinema/Duke_Of_Yorks'), 'w') do |file| puts '* Duke of Yorks' file.write PicturehouseUk::Internal::Website.new.cinema('Duke_Of_Yorks') end File.open(fixture('contact_us/Duke_Of_Yorks'), 'w') do |file| puts '* Duke of Yorks Information' file.write PicturehouseUk::Internal::Website.new.contact_us('Duke_Of_Yorks') end # KOMEDIA File.open(fixture('contact_us/Dukes_At_Komedia'), 'w') do |file| puts '* Dukes at Komedia Information' file.write PicturehouseUk::Internal::Website.new.contact_us('Dukes_At_Komedia') end # FILMS page = PicturehouseUk::Internal::CinemaPage.new('Duke_Of_Yorks') File.open(fixture('cinema/Duke_Of_Yorks/film_second'), 'w') do |file| puts '* Duke of Yorks Second Film' file.write page.film_html[1] end File.open(fixture('cinema/Duke_Of_Yorks/film_last'), 'w') do |file| puts '* Duke of Yorks Last Film' file.write page.film_html[-1] end
Version data entries
6 entries across 6 versions & 1 rubygems