Refactored rspec syntax.