Added a spec for using do end prock with record event