From 64c31af5297904e858ca961632d01545960920de Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 29 Dec 2010 11:18:10 -0800 Subject: [PATCH] GREEN --- features/step_definitions/user_steps.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/step_definitions/user_steps.rb b/features/step_definitions/user_steps.rb index a811bd678..02b23ff44 100644 --- a/features/step_definitions/user_steps.rb +++ b/features/step_definitions/user_steps.rb @@ -47,7 +47,8 @@ end Then /^I should see (\d+) contact(?:s)? in "([^"]*)"$/ do |contact_count, aspect_name| aspect = @me.reload.aspects.find_by_name(aspect_name) - number_of_contacts = evaluate_script("$('li.person.ui-draggable[data-aspect_id=\"#{aspect.id}\"]').length") + number_of_contacts = evaluate_script( + "$('ul.dropzone.ui-droppable[data-aspect_id=\"#{aspect.id}\"]').children('li.person').length") number_of_contacts.should == contact_count.to_i end