At least a small typo here (missing an 'runs mvn test **'if** no project...'). I would actually propose to reword it as something like: 
`it 'runs mvn test if no sbt configuration exists' do`