+ [:has_component_with_no_script_parameters,
+ :has_component_with_empty_script_parameters].each do |pi_name|
+ test "update pipeline that #{pi_name}" do
+ pi = pipeline_instances pi_name
+
+ Thread.current[:user] = users(:active)
+ # Make sure we go through the "active_changed? and active" code:
+ pi.update_attributes active: true
+ pi.update_attributes active: false
+ assert_equal PipelineInstance::Ready, pi.state
+ end
+ end