私は使用する必要があります:
機能ファイル内
Then I should see all of the texts:
| the first text |
| the third text |
| the fourth text |
助けてください、このステップを説明してください:
ステップファイルで
Then(/^I should see all text:$/) do |table|
# table is a Cucumber::Ast::Table
........................
end
================================================== ======================
私は次のように決めました。
Then(/^I should see all text:$/) do |table|
table.rows.flatten.each do |text|
should have_content(text)
end
end
しかし、より良いステップがあれば、書いてください!
ありがとう!