Sha256: 2aaff74a36edb6a9295661a9a8d65c6b033c4f8e567318c78745bba68113cea5

Contents?: true

Size: 533 Bytes

Versions: 24

Compression:

Stored size: 533 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.content_type
        assert_equal task.chunk_output, response.body
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
shipit-engine-0.28.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.28.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.27.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.27.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.26.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.25.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.25.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.24.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.23.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.23.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.22.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.21.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.20.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.20.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.19.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.18.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.18.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.17.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.16.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.15.0 test/controllers/api/outputs_controller_test.rb