Thanks Justin
I have posted the query in Cukes mailing list.
Cheers
Navi
On Friday, 29 March 2019 16:33:14 UTC+11, NaviHan wrote:
>
> Im trying to understand how the around hooks work
>
> Im sorry if the question is very basic. I cant find the implementation of
> "Around" in Cucumber API docs as well (checked
>
> *Cucumber::RbSupport::RbDsl*
> in
>
> *Around **do *|*scenario*, *block*|
>
> puts *"About to run *#{*scenario*.name}
>
> *" **block*.call
>
> puts *"Finished running *#{*scenario*.name}
>
> *"**end*
>
>
> I was expecting scenario.call instead of block.call
>
> How does the scenario gets passed to block?
>
--
--
Before posting, please read
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
In short: search before you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.