From 059d52fdfb40400fcf795dc2a079866c640a1918 Mon Sep 17 00:00:00 2001 From: Stephan Eckardt Date: Thu, 31 Mar 2011 12:48:10 +0200 Subject: [PATCH] removed uncalled method create_role_in_project from cucumber helpers --- features/step_definitions/helpers.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/features/step_definitions/helpers.rb b/features/step_definitions/helpers.rb index eb517d1996..bf10c391bd 100644 --- a/features/step_definitions/helpers.rb +++ b/features/step_definitions/helpers.rb @@ -34,19 +34,6 @@ def initialize_impediment_params(project, sprint, user = User.find(:first)) params end -def create_role_in_project - role = Role.find(:first, :conditions => "name='Manager'") - - @user.memberships.destroy_all - - membership = @user.memberships.create(:project_id => @project) - require 'ruby-debug'; debugger - membership.member_roles << MemberRole.new(:role => role) - membership.save! - - role -end - def task_position(task) p1 = task.story.tasks.select{|t| t.id == task.id}[0].rank p2 = task.rank