キュウリの 3 列のインライン データ テーブルからデータを読み込もうとしています。
機能ファイル:
Then I should see grades,exteriors, interiors and engines available:
|grades |exteriors | engine |
|xdata-id-Elegance |xdata-id-NH-788p | 12345 |
| |xdata-id-NH737M | |
| |xdata-id-NH731P | |
| |xdata-id-R-539P | |
ステップ定義:
Then(/^I should see grades,exteriors, interiors and engines available:$/) do |table|
data = table.rows_hash
puts data['exteriors']
end
これにより、2行のみが許可されるというエラーが表示されます。
テーブルオブジェクトを使用して3つの列すべてにアクセスできる別の方法を知っている人はいますか?