18948: Update test.
[arvados.git] / services / api / test / unit / pipeline_instance_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'test_helper'
6
7 class PipelineInstanceTest < ActiveSupport::TestCase
8
9   [:has_component_with_no_script_parameters,
10    :has_component_with_empty_script_parameters].each do |pi_name|
11     test "update pipeline that #{pi_name}" do
12       pi = pipeline_instances pi_name
13
14       Thread.current[:user] = users(:active)
15       assert_equal PipelineInstance::Ready, pi.state
16     end
17   end
18 end