Yes, you can pass arguments to both, and it's completely safe to do so.

On Tue, Nov 17, 2015 at 11:07 PM, George Mendoza <[email protected]>
wrote:

> Hello RSpec team,
>
> Our team recently discovered that it's possible to pass parameters to a
> shared_context group. Is it safe to do so? I have read from the Difference
> between shared_examples and shared_context
> <https://groups.google.com/d/msg/rspec/xyqnBnewQDc/Zzj9Te6gqZEJ> thread
> that shared_examples and shared_contexts are just aliases. However, AFAIK,
> passing parameters to a shared examples group is only documented for the
> shared examples
> <https://groups.google.com/d/msg/rspec/xyqnBnewQDc/Zzj9Te6gqZEJ> group.
>
> Thanks and more power!
>
> George Mendoza
> Philippines
>
> --
> You received this message because you are subscribed to the Google Groups
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/aa709afa-c203-403a-9d55-1b22cfcca28e%40googlegroups.com
> <https://groups.google.com/d/msgid/rspec/aa709afa-c203-403a-9d55-1b22cfcca28e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CADUxQmswN22E0yRm3iR2aRYZJ34K6VQWOsVvsujHv_q5tsvbJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to