converted specs to rspec 3