Skip to content

Instantly share code, notes, and snippets.

@hogihung
Last active May 3, 2016 13:07
Show Gist options
  • Save hogihung/3eb620a2b46269d35d2ec656697077a2 to your computer and use it in GitHub Desktop.
Save hogihung/3eb620a2b46269d35d2ec656697077a2 to your computer and use it in GitHub Desktop.
Cucumber Scenario Outline Example
And I successfully change the following the configuration values, one at a time:
| id | input |
| activity-requirement | 80 |
Then I see config has the following input values
| id | input |
| activity-requirement | 80 |
STEP DEFS:
When /^I successfully change the following the configuration values, one at a time:$/ do |table|
table.hashes.each do |line|
attempt_auction_config_save_complex("upper_config", line[:id], line[:input], false)
end
end
Then /^I see config has the following input values$/ do |table|
within 'table.upper_config' do
table.hashes.each do |line|
within '#' + line[:id] do
expect(page).to have_field("input-" + line[:id], with: line[:input])
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment