From fa3cdeb8cb97cdc9bd93424d8cb8c3906d7be88c Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Mon, 4 Jul 2011 11:40:46 -0700 Subject: [PATCH] Remove a few unused cucumber steps --- features/step_definitions/custom_web_steps.rb | 8 -------- features/step_definitions/posts_steps.rb | 6 +----- features/step_definitions/user_steps.rb | 6 ------ 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 9856a7d26..55f3ea3bb 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -151,14 +151,6 @@ When /^I search for "([^\"]*)"$/ do |search_term| JS end -Then /^I should( not)? see the contact dialog$/ do |not_see| - if not_see - wait_until { !page.find("#facebox").visible? } - else - wait_until { page.find("#facebox .share_with") && page.find("#facebox .share_with").visible? } - end -end - Then /^I should( not)? see an add contact button$/ do |not_see| expected_length = not_see ? 0 : 1 evaluate_script("$('.add_contact a').length == #{expected_length};") diff --git a/features/step_definitions/posts_steps.rb b/features/step_definitions/posts_steps.rb index ac39424c7..2ab36b55a 100644 --- a/features/step_definitions/posts_steps.rb +++ b/features/step_definitions/posts_steps.rb @@ -1,7 +1,3 @@ -When /^I click share across aspects$/ do - find("#expand_publisher").click -end - When /^I post a photo with a token$/ do json = JSON.parse < arg1).first user2 = User.where(:email => arg2).first