diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-05 03:04:59 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-05 03:04:59 +0400 |
commit | 24ece551f92e367ff4c4219727bf7ad190d442b2 (patch) | |
tree | 1779c472387a0691134f27773865dffa88791544 /features | |
parent | 7aefe37de84ee8b3d259b74ed8278b4315d00bda (diff) |
Do one step def in capybara rather than JS
Diffstat (limited to 'features')
-rw-r--r-- | features/step_definitions/custom_web_steps.rb | 2 |
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 |