Converted testing to rspec