If you define a shared example group in the main object (e.g. in support files or at the top of spec files) then self is an instance of object, otherwise self is a class definition (which is how the nested describe/context works in general). This is normalising the context to be a class.