Skip to content

Commit

Permalink
adding failing test for #804
Browse files Browse the repository at this point in the history
  • Loading branch information
thecapdan committed Jul 14, 2014
1 parent a1c684c commit a231885
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.bladerunnerjs.plugin.plugins.commands.standard.ExportApplicationCommand;
import org.bladerunnerjs.testing.specutility.engine.SpecTest;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class ExportApplicationCommandTest extends SpecTest {
Expand Down Expand Up @@ -86,5 +87,18 @@ public void appCanBeExportedAndZipContentsAreCorrect() throws Exception {
.and(brjs).hasFile("generated/exported-app/app1/app1/WEB-INF/classes/hibernate.cfg.xml")
.and(brjs).doesNotHaveFile("generated/exported-app/app1/app1/WEB-INF/lib/brjs-core.jar");
}

@Ignore // failing - should be fixed with #802
@Test
public void maintainsJsStyleFileWhenAppIsExported() throws Exception {
given(app).hasBeenCreated()
.and(aspect).classFileHasContent("appns.Class1", "default aspect src")
.and(aspect).containsFile("default-aspect/src/.js-style");
when(brjs).runCommand("export-app", "app1")
.and(brjs).zipFileIsExtractedTo("generated/exported-app/app1.zip", "generated/exported-app/app1");
then(brjs).hasFile("generated/exported-app/app1/app1/default-aspect/src/.js-style");
}



}

0 comments on commit a231885

Please sign in to comment.