updated for Rspec3