assumeThat(currentTime).is(anHourAndHalfLater);
assertThat(view.lastBuildDuration(), is("1h 30m 0s"));
}
@Test
public void should_know_how_long_the_last_build_took_once_its_finished() throws Exception {
<BUG>view = JobView.of(

a(job().whereTheLast(build().finishedWith(SUCCESS).andTook(3))),

withDefaultConfig());</BUG>
assertThat(view.lastBuildDuration(), is("3m 0s"));

assumeThat(currentTime).is(anHourAndHalfLater);
assertThat(view.lastBuildDuration(), is("1h 30m 0s"));
}
@Test
public void should_know_how_long_the_last_build_took_once_its_finished() throws Exception {
view = a(jobView().of(
a(job().whereTheLast(build().finishedWith(SUCCESS).and().took(3)))));
