-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal Idea: Provide a convenient way to call step with table argument within another step #183
Comments
Hi @hanachin . Thanks for proposal.
Yes (for now).
I understand 🙆♀️ . Given /A simple expense report/ do
step "an expense report for Jan 2009 with the following posts:", table(%{
| account | description | amount |
| INT-100 | Taxi | 114 |
| CUC-101 | Peeler | 22 |
})
end
## or
Given /A simple expense report/ do
step "an expense report for Jan 2009 with the following posts:", table([
%w{ account description amount },
%w{ INT-100 Taxi 114 },
%w{ CUC-101 Peeler 22 }
])
end refs: Calling Steps from Step Definitions · cucumber/cucumber Wiki Cucumber provides |
I didn't know that the cucumber has API to explicitly convert string or array to the table, thanks for quick reply😄 I'm ok to call new DSL
Can Turnip's |
Pending 🙏 |
I got it! If turnip provide the |
お久しぶりです。 この話題は、去年開催されたRuby会議3日目の帰りの電車での話題だと思います。 |
No problem! |
I use
Turnip::Table.new
to call step that takes table argument, like following:But
Turnip::Table.new
example is not in README. Is it a private API?I want convert the array to
Turnip::Table
implicitly when passing the array to another step like following:The text was updated successfully, but these errors were encountered: