Do one step def in capybara rather than JS

This commit is contained in:
Raphael Sofaer 2011-07-04 16:04:59 -07:00
parent 7aefe37de8
commit 24ece551f9

View file

@ -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