Improve ProjectType tests to also test a deeper nesting structure

Agreed. I will put in a couple of different versions.

On Fri, Sep 12, 2014 at 3:31 PM, Justin Ryan <notifications@github.com>
wrote:

> In src/test/groovy/nebula/core/ProjectTypeSpec.groovy:
>
> > +    }
> > +
> > +    def 'multi level multiproject identifies sub as leaf'() {
> > +        def mid = createSubproject(project, 'mid')
> > +        def sub = createSubproject(mid, 'sub')
> > +
> > +        when:
> > +        def multiSub = new ProjectType(sub)
> > +
> > +        then:
> > +        !multiSub.isRootProject
> > +        !multiSub.isParentProject
> > +        multiSub.isLeafProject
> > +    }
> > +
> > +    static Project createSubproject(Project parentProject, String name) {
>
> Really want this in nebula-test
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/nebula-plugins/nebula-core/pull/3/files#r17506080>.
>