Equivalent option for Scenario outline in Rspec

8 views
Skip to first unread message

mgo...@reflektive.com

unread,
Jan 21, 2019, 6:48:27 AM1/21/19
to rspec
Hi Team, 
   Is there any Equivalent option for Scenario outline in Rspec.

Regards,
Malini.SM

Jon Rowe

unread,
Jan 21, 2019, 6:50:56 AM1/21/19
to rs...@googlegroups.com
Hi Mailini

The closest parable would be the shared_examples functionality, see:


You can define a bunch of specs within one and then either inject local variables (providing their static) for repeat usage, or use let’s to inject your changes.

Regards
Jon Rowe
---------------------------
Reply all
Reply to author
Forward
0 new messages