I am using calabash-android to test my app.
I created my own step:
Then /^There should be (\d+) customers$/ do |nr_of_customers|
...
end
after that, I create another step, which needs to call the above existing step, I know I can use macro, so I tried this:
Given /^I hosted (\d+) customers$/ do |nr_of_customers|
#How to pass the nr_of_customers to the macro???
macro 'There should be nr_of_customers'
...
end
But, how can I pass the parameter nr_of_customers
to the macro which calls the other step function?