Add specs and fix error when no :layout supplied to #render_activity