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.1.3 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.3.pre2 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.3.pre lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.2 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.2.pre lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.1 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.1.pre lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.0 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.1.0.pre lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.0.8 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.0.8.pre2 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.0.8.pre lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.0.7 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.0.6 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.0.5 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb
inferno_core-0.0.4 lib/inferno/apps/web/controllers/test_sessions/last_test_run.rb