Sha256: d5d71b45defcf4d39ebab5da3ebb2d1ab63ebefbff09477e9ee3ebf7646de164
Contents?: true
Size: 526 Bytes
Versions: 55
Compression:
Stored size: 526 Bytes
Contents
module Inferno module Web module Controllers module TestSessions class LastTestRun < Controller include Import[test_runs_repo: 'inferno.repositories.test_runs'] def handle(req, res) test_run = test_runs_repo.last_test_run(req.params[:id]) res.body = if test_run.nil? nil else Inferno::Web::Serializers::TestRun.render(test_run) end end end end end end end
Version data entries
55 entries across 55 versions & 1 rubygems