updated for rspec 3.x