10
Comment puis-je tester qu'une table a 3 lignes en utilisant Capybara?Capybara: Comment tester qu'une table a 3 lignes en utilisant Capybara?
Comment puis-je tester qu'une table a 3 lignes en utilisant Capybara?Capybara: Comment tester qu'une table a 3 lignes en utilisant Capybara?
page.should have_selector('table tr', :count => 3)
vous pouvez aussi le faire minimum ou maximum
page.should have_selector('table tr', :minimum => 3)