assertThat(view.status(), containsString("successful"));
}
@Test
public void should_describe_the_job_as_failing_if_the_last_build_failed() {
for (Result result : asFollows(FAILURE, ABORTED)) {
<BUG>view = JobView.of(

a(job().whereTheLast(build().finishedWith(result))),

withDefaultConfig());</BUG>
assertThat(view.status(), containsString("failing"));

assertThat(view.status(), containsString("successful"));
}
@Test
public void should_describe_the_job_as_failing_if_the_last_build_failed() {
for (Result result : asFollows(FAILURE, ABORTED)) {
view = a(jobView().of(
a(job().whereTheLast(build().finishedWith(result)))));
