我想要一个步骤来使用用户在其中一个黄瓜场景中提供的值更新表。步骤是:
Given /^I Update the (.+) field of the (.+) table by setting it as (.+)$/ do |col_name, table_name, value|
end
我想要类似的东西
table_name.update_column('#{col_name}',value)
或者它适用于所有桌子的东西。
我想要一个步骤来使用用户在其中一个黄瓜场景中提供的值更新表。步骤是:
Given /^I Update the (.+) field of the (.+) table by setting it as (.+)$/ do |col_name, table_name, value|
end
我想要类似的东西
table_name.update_column('#{col_name}',value)
或者它适用于所有桌子的东西。