Sha256: 771b67be0faf59ca672b6f40e20fa536a96f1df7c80b8e0a3d5a325cfa703dc1

Contents?: true

Size: 524 Bytes

Versions: 36

Compression:

Stored size: 524 Bytes

Contents

module Inferno
  module Web
    module Controllers
      module TestSessions
        class LastTestRun < Controller
          include Import[test_runs_repo: 'repositories.test_runs']

          def call(params)
            test_run = test_runs_repo.last_test_run(params[:test_session_id])

            self.body =
              if test_run.nil?
                nil
              else
                Inferno::Web::Serializers::TestRun.render(test_run)
              end
          end
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
inferno_core-0.3.12 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.11 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.10 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.9 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.8 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.7 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.6 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.5 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.4 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.3 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.2 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.1 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.0 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.3.0.rc1 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.2.0 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.2.0.rc4 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.2.0.rc3 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.2.0.rc2 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.2.0.rc1 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.4.pre lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb