updated to work with rspec 3