updated to work with latest rspec