From 3e689ec98860cbad3516074572af349a8308a935 Mon Sep 17 00:00:00 2001 From: Pistos Date: Thu, 10 Nov 2011 11:20:24 -0500 Subject: [PATCH] Whitespace cleanup. --- features/posts_from_main_page.feature | 2 +- features/step_definitions/custom_web_steps.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/posts_from_main_page.feature b/features/posts_from_main_page.feature index 2bb50f4be..b72c2fbd2 100644 --- a/features/posts_from_main_page.feature +++ b/features/posts_from_main_page.feature @@ -53,7 +53,7 @@ Feature: posting from the main page Then I should see a "img" within ".stream_element div.photo_attachments" And I should see "Look at this dog" within ".stream_element" - Scenario: post a photo without text + Scenario: post a photo without text Given I expand the publisher When I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload" And I wait for the ajax to finish diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 74feb5712..d909fde24 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -194,7 +194,7 @@ When /^I resize my window to 800x600$/ do JS end -Then /^I follow Edit Profile in the same window$/ do +Then /^I follow Edit Profile in the same window$/ do page.execute_script("$('a[href=\"#{edit_profile_path}\"]').removeAttr('target')") And %(I follow "Edit Profile") @@ -213,7 +213,7 @@ And "I wait for the popovers to appear" do end And /^I click close on all the popovers$/ do - page.execute_script("var time = 400; $('.popover .close').each( + page.execute_script("var time = 400; $('.popover .close').each( function(index, element){ setTimeout(function(){ $(element).click()},time); time += 800; });")