added expect with proc rspec snippet