Date post: | 11-Jul-2015 |
Category: |
Technology |
Upload: | sahil-shah |
View: | 825 times |
Download: | 0 times |
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