RSpec: shared_examples
17
RSpec: Core shared_examples[_for]
-
Upload
sahil-shah -
Category
Technology
-
view
828 -
download
0
Transcript of RSpec: shared_examples
RSpec: Core shared_examples[_for]
Why to use these?
DRY | MOIST DON'T REPEAT YOURSELF | MAKE OBVIOUSLY IDENTICAL STATEMENTS TWICE
○ Mixins○ Subclasses○ Controllers
Where do I put these?
Where do I put these?
● Anywhere in the 'spec/' directory
Where do I put these?
● Anywhere in the 'spec/' directory
● Conventionally in 'spec/support/shared_examples/'
Basics
Providing context
Passing parameters
Add specs for a new Xml Remap
Thank You
See: https://www.relishapp.com/rspec