Added macros and shared_examples in spec