diff options
| author | mo khan <mo.khan@gmail.com> | 2020-09-16 12:16:56 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-09-16 12:16:56 -0600 |
| commit | 47b673882a84d7683a07b4e366132a80a3ff1313 (patch) | |
| tree | 729efa8b9db3b764c45198ba229684fe202bff0e /lib/e2e/project.rb | |
| parent | 7a6199f2ea4adc239d5bf791e07dd5d93c9744c6 (diff) | |
refactor: Extract shared test context
Diffstat (limited to 'lib/e2e/project.rb')
| -rw-r--r-- | lib/e2e/project.rb | 4 |
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 |
