Example #1
0
  public void interpret(Specification table) {
    final Example row = table.nextExample();

    Document document = Document.text(ExampleWrapper.sandbox(row));
    document.execute(new GreenPepperInterpreterSelector(systemUnderDevelopment()));
    table.exampleDone(document.getStatistics());

    while (table.hasMoreExamples()) {
      table.nextExample();
    }
  }
 private void assertSpecificationLoadedOk(Document doc) {
   assertEquals("html", doc.getType());
 }