convert spec file to coffeescript