Set context in specs and objects