canvas-lms/spec/support/mock_static_sites/sample_site
Tucker McKnight d84b148a60 spec: Block requests to a host, map to local dir instead
This adds a MockStaticSite class, which is available to
anything inside the /spec directory. When you create a
MockStaticSite object, you give it a hostname (like site.com)
and a site name (like your_site_name). GET requests to
that hostname will instead see whatever files are in
/spec/support/mock_static_sites/your_site_name, as though
the contents of that directory were a static HTML site hosted
at site.com.

Change-Id: Id6fdbb49a0f0eaddf596d40978e0e77063170395
Reviewed-on: https://gerrit.instructure.com/183557
Tested-by: Jenkins
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Tucker Mcknight <tmcknight@instructure.com>
2019-03-05 21:40:17 +00:00
..
file.txt spec: Block requests to a host, map to local dir instead 2019-03-05 21:40:17 +00:00
index.html spec: Block requests to a host, map to local dir instead 2019-03-05 21:40:17 +00:00