convert main spec file to rspec