From e3f1b42df3d814f3b04cabc39b4c1cc34b4107a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 26 Oct 2016 08:10:50 +0200 Subject: [PATCH] Rewrite AbstractWorkPackage#set_attrbiutes --- spec/support/pages/abstract_work_package.rb | 4 +++- spec/support/work_packages/work_package_field.rb | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/support/pages/abstract_work_package.rb b/spec/support/pages/abstract_work_package.rb index c472417da1..37e42b00be 100644 --- a/spec/support/pages/abstract_work_package.rb +++ b/spec/support/pages/abstract_work_package.rb @@ -130,7 +130,7 @@ module Pages def set_attributes(key_value_map, save: true) key_value_map.each_with_index.map do |(key, value), index| field = work_package_field key - field.activate_edition + field.activate! field.set_value value # select fields are saved on change @@ -151,6 +151,8 @@ module Pages else WorkPackageField.new page, key end + elsif key == :description + WorkPackageTextAreaField.new page, key else WorkPackageField.new page, key end diff --git a/spec/support/work_packages/work_package_field.rb b/spec/support/work_packages/work_package_field.rb index 0900f60590..0a627412de 100644 --- a/spec/support/work_packages/work_package_field.rb +++ b/spec/support/work_packages/work_package_field.rb @@ -160,6 +160,7 @@ class WorkPackageField :project, :status, :type, + :version, :category :select else