Sha256: 2439c8955fbb2b5f17c413845d22a297f5c5394cf768f368a8a9296e2b10ba1f

Contents?: true

Size: 432 Bytes

Versions: 22

Compression:

Stored size: 432 Bytes

Contents

require 'test_helper'

class Api::OutputsControllerTest < ActionController::TestCase
  setup do
    @stack = 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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shipit-engine-0.5.2 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.5.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.5.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.10 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.9 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.8 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.7 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.6 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.5 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.4 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.3 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.2 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.4.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.3.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.3.0 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.2.3 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.2.2 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.2.1 test/controllers/api/outputs_controller_test.rb
shipit-engine-0.2.0 test/controllers/api/outputs_controller_test.rb