Sha256: e8902561293102da1a15084ad93bbd00e073d77bbb80e6e89857e4f8cc21ac3f
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
# Fake website for reading fixtures from disk class FakeWebsite def home read_file('../../fixtures/home.html') end def cinema(cinema_id) read_file("../../fixtures/#{cinema_id}/cinema.html") end def info(cinema_id) read_file("../../fixtures/#{cinema_id}/info.html") end def whats_on(cinema_id) read_file("../../fixtures/#{cinema_id}/whats_on.html") end private def read_file(filepath) File.read(File.expand_path(filepath, __FILE__)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picturehouse_uk-4.0.0 | test/support/fake_website.rb |