Sha256: 85d074135f8c9bad95e458595209e2e7bb56f7421d97c0515cf99d4d65467437

Contents?: true

Size: 523 Bytes

Versions: 19

Compression:

Stored size: 523 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, 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

19 entries across 19 versions & 1 rubygems

Version Path
shipit-engine-0.11.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.10.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.9.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.9 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.8 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.7 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.6 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.5 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.4 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.3 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.2 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.8.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.7.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.6.4 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.6.3 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.6.2 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.6.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.6.0 test/controllers/api/outputs_controller_test.rb