fix errorneous pluck calls

pull/6827/head
Jan Sandbrink 9 years ago
parent f2ce0d2063
commit 0e6715253c
  1. 6
      features/step_definitions/helpers.rb

@ -53,7 +53,7 @@ def initialize_task_params(project, story, user = User.first)
params['fixed_version_id'] = story.fixed_version_id
params['parent_id'] = story.id
end
params['status_id'] = Status.first.pluck(:id)
params['status_id'] = Status.first.id
# unsafe attributes that will not be used directly but added for your
# convenience
@ -68,7 +68,7 @@ def initialize_work_package_params(project, type = Type.first, parent = nil, use
params = HashWithIndifferentAccess.new
params['type_id'] = type.id
params['parent_id'] = parent.id if parent
params['status_id'] = Status.first.pluck(:id)
params['status_id'] = Status.first.id
# unsafe attributes that will not be used directly but added for your
# convenience
@ -83,7 +83,7 @@ def initialize_impediment_params(project, sprint, user = User.first)
params = HashWithIndifferentAccess.new(Task.new.attributes)
params['type_id'] = Task.type
params['fixed_version_id'] = sprint.id
params['status_id'] = Status.first.pluck(:id)
params['status_id'] = Status.first.id
# unsafe attributes that will not be used directly but added for your
# convenience

Loading…
Cancel
Save