When I execute the test in the terminal, cucumber provides me the snippet in string formats, but I have seen for some others the snippet in regular expression format.
How can I get cucumber to default to regular expression snippets?
Output I received:
Then("Show All button should be enabled") do
pending # Write code here that turns the phrase above into concrete actions
end
Instead of:
Then (/^Show All button should be enabled$/) do
pending # Write code here that turns the phrase above into concrete actions
end
Using:
Ruby: ruby 2.3.3p222
Cucumber: 3.1.0
Then(/^Show (.*)/) do |what|covers all the tests starting withShowand one might use caught matches as block parameters. - Aleksei Matiushkin