Tuesday, 20 August 2013

Define a Cucumber step in a Before block

Define a Cucumber step in a Before block

Before('@scoped_step')
Given(/^Some step$/) do
puts "Success!"
end
end
However, Cucumber just thinks I'm trying to call a step:
WARNING: Using 'Given/When/Then' in step definitions is deprecated, use
'step' to call other steps instead
I'm trying to track down how to do this via the Cucumber code base, but
I'm getting a bit lost.
Any ideas how to achieve this? Something like
"Cucumber::Steps.register_step(...)`?

No comments:

Post a Comment