convert to rspec 3