Translating rspec 2 to rspec 3.