refactored Rspec syntax in projects spec