Sha256: 6a51b1f4fcec26b4015a05cb4c9b6f53af4e945d6fd5016635182891ff299447

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

require 'test_helper'

module Shipit
  module Api
    class OutputsControllerTest < ActionController::TestCase
      setup do
        @stack = shipit_stacks(:shipit)
        authenticate!
      end

      test "#show returns the task output as plain text" do
        task = @stack.tasks.last

        get :show, params: {stack_id: @stack.to_param, task_id: task.id}
        assert_response :ok
        assert_equal 'text/plain', response.media_type
        assert_equal task.chunk_output, response.body
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.30.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.29.0 test/controllers/api/outputs_controller_test.rb