@Test public void bundleCanBeGeneratedForABladeInADefaultBladesetThatAlsoHasADefaultAspect() throws Exception { given(bladeInDefaultBladeset) .hasClasses("Class1") .and(app.defaultAspect()) .indexPageHasContent("") .and(bladeInDefaultBladeset.workbench()) .indexPageRequires("appns/b1/Class1"); when(bladeInDefaultBladeset.workbench()) .requestReceivedInDev("js/dev/combined/bundle.js", response); then(response).containsCommonJsClasses("appns/b1/Class1"); }
@Test public void defaultAspectCanHaveItsOwnDirectory() throws Exception { given(app).hasBeenCreated().and(app).containsFile("default-aspect/index.html"); then(app.defaultAspect()).dirExists().and(app.defaultAspect()).hasFile("index.html"); }
@Test public void defaultAspectIsCorrectlyIdentified() throws Exception { given(app).hasBeenCreated().and(app).containsFile("index.html"); then(app.defaultAspect()).dirExists().and(app.defaultAspect()).hasFile("index.html"); }