Groups
Groups
Sign in
Groups
Groups
rspec
Conversations
About
Send feedback
Help
Equivalent option for Scenario outline in Rspec
8 views
Skip to first unread message
mgo...@reflektive.com
unread,
Jan 21, 2019, 6:48:27 AM
1/21/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
1/21/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rs...@googlegroups.com
Hi Mailini
The closest parable would be the shared_examples functionality, see:
https://relishapp.com/rspec/rspec-core/v/3-8/docs/example-groups/shared-examples
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
---------------------------
ma...@jonrowe.co.uk
jonrowe.co.uk
Reply all
Reply to author
Forward
0 new messages