test/controllers/tasks_controller_test.rb in shipit-engine-0.8.9 vs test/controllers/tasks_controller_test.rb in shipit-engine-0.9.0
- old
+ new
@@ -50,9 +50,15 @@
test "triggered tasks can be observed" do
get :show, stack_id: @stack, id: @task.id
assert_response :ok
end
+ test "triggered tasks can be observed as raw text" do
+ get :show, stack_id: @stack, id: @task.id, format: "txt"
+ assert_response :success
+ assert_equal("text/plain", @response.content_type)
+ end
+
test ":abort call abort! on the deploy" do
@task = shipit_deploys(:shipit_running)
@task.pid = 42
post :abort, stack_id: @stack.to_param, id: @task.id