s***@gmail.com
2018-06-01 13:43:09 UTC
Hi guys!
So, I have, i.e. next two steps:
And('Custom ParameterType {pt_test}') do |pt_test|
end
And(/^Another custom ParameterType (.+)$/) do |pt_test|
end
and next ParameterType:
ParameterType(
name: 'pt_test',
regexp: /.+/,
type: String,
transformer: -> (str) { require 'pry'; binding.pry; str }
)
The steps above uses the same regex, so can I somehow split this steps, so
first can be wrapped by ParameterType and second not?
Thank you for help,
Serhii
So, I have, i.e. next two steps:
And('Custom ParameterType {pt_test}') do |pt_test|
end
And(/^Another custom ParameterType (.+)$/) do |pt_test|
end
and next ParameterType:
ParameterType(
name: 'pt_test',
regexp: /.+/,
type: String,
transformer: -> (str) { require 'pry'; binding.pry; str }
)
The steps above uses the same regex, so can I somehow split this steps, so
first can be wrapped by ParameterType and second not?
Thank you for help,
Serhii
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.