summaryrefslogtreecommitdiff
path: root/lib/e2e/project.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-09-16 12:16:56 -0600
committermo khan <mo.khan@gmail.com>2020-09-16 12:16:56 -0600
commit47b673882a84d7683a07b4e366132a80a3ff1313 (patch)
tree729efa8b9db3b764c45198ba229684fe202bff0e /lib/e2e/project.rb
parent7a6199f2ea4adc239d5bf791e07dd5d93c9744c6 (diff)
refactor: Extract shared test context
Diffstat (limited to 'lib/e2e/project.rb')
-rw-r--r--lib/e2e/project.rb4
1 files changed, 4 insertions, 0 deletions
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