[rspec-users] [Cucumber] Tabular data in steps

Juanma Cervera lists at ruby-forum.com
Thu Jan 29 03:47:06 EST 2009


Is it possible to mix a normal parameter argument for a step, with
tabular data?

Something like this:

Given there is a country "Spain" with the cities:
  |name      |
  |Madrid    |
  |Barcelona |
  |Valencia  |

And this step_definition

Given /^there is a country "Spain" with the cities:$/ do |country_name,
cities_table|
...
end

Thanks
Juanma
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list