+
+ test "name editable on completed pipeline" do
+ assert(attribute_editable_for?(:active, "has_component_with_completed_jobs",
+ "name"),
+ "name not editable on complete pipeline")
+ end
+
+ test "components editable on new pipeline" do
+ assert(attribute_editable_for?(:active, "new_pipeline", "components"),
+ "components not editable on new pipeline")
+ end
+
+ test "components not editable on completed pipeline" do
+ refute(attribute_editable_for?(:active, "has_component_with_completed_jobs",
+ "components"),
+ "components not editable on new pipeline")
+ end