Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-07-05 03:04:59 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-05 03:04:59 +0400
commit24ece551f92e367ff4c4219727bf7ad190d442b2 (patch)
tree1779c472387a0691134f27773865dffa88791544 /features
parent7aefe37de84ee8b3d259b74ed8278b4315d00bda (diff)
Do one step def in capybara rather than JS
Diffstat (limited to 'features')
-rw-r--r--features/step_definitions/custom_web_steps.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb
index 135776487..c61534ed3 100644
--- a/features/step_definitions/custom_web_steps.rb
+++ b/features/step_definitions/custom_web_steps.rb
@@ -174,7 +174,7 @@ Then /^the "([^"]*)" field(?: within "([^"]*)")? should be filled with "([^"]*)"
end
Then /^I should see (\d+) posts$/ do |n_posts|
- evaluate_script("$('#main_stream .stream_element').length").should == n_posts.to_i
+ all("#main_stream .stream_element").length.should == n_posts.to_i
end
And /^I scroll down$/ do