onsi/gomega — pull request #28 by xoebus (2014-04-26 13:27:37+00:00)
Title: Allow duration strings to be used for intervals

This change allows people to specify durations for `Eventually` and `Consistently`. For example:

``` go
It("should abort a consistently", func() {
t := time.Now()
Consistently(buffer, "2s").ShouldNot(Say("def"))
Expect(time.Since(t)).Should(BeNumerically("<", 500*time.Millisecond))
})
```