Converted specs to rspec 3 syntax using teanspec.