From 47b673882a84d7683a07b4e366132a80a3ff1313 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 16 Sep 2020 12:16:56 -0600 Subject: refactor: Extract shared test context --- lib/e2e/project.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/e2e/project.rb b/lib/e2e/project.rb index a90dfd6..d2d56bc 100644 --- a/lib/e2e/project.rb +++ b/lib/e2e/project.rb @@ -9,6 +9,10 @@ class Project @path = Pathname(path) end + def report_for(type:) + JSON.parse(path.join("gl-#{type}-report.json").read) + end + def mount(dir:) FileUtils.cp_r("#{dir}/.", path) end -- cgit v1.2.3