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

Version Path
inferno_core-0.6.2 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.6.1 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.6.0 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.5.4 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.5.3 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.5.2 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.5.1 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.5.0 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.44 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.43 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.42 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.41 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.40 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.39 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.38 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.35 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.34 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.33 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.32 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.4.31 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb