assertThat(spec.execute().getTestClassName(), startsWith(this.getClass().getName()));
}
@Test
public void should_return_the_outputs_of_the_underlying_features() {
final MByHaveSpec spec = new MByHaveSpec() {{
Feature("this is a feature without runner",
Scenario("this is a scenario",
given("something", () -> {
})));
}};
final SpecOutput output = spec.execute();
assertEquals(1, output.getFeatures().size());
assertEquals(FeatureResult.Success, output.getFeatures().iterator().next().getResult());
}