Rob Fletcher

Results 111 comments of Rob Fletcher

``` It definitely makes sense as a general feature, but designing and implementing it won't be trivial. If you are interested in contributing, please let us know. ``` Reported by...

``` Not sure if we should make tactical changes to getMessage() "just" to please Ant reports. One the other hand, they pop up in many places (Ant, Gradle, Maven, CI...

Reported by `pniederw` on 2012-02-20 00:15:42 - **Labels added**: Milestone-Backlog - **Labels removed**: Milestone-0.6

``` Same here: groovy: 2.2.2, spock: 0.7-groovy-2.0 I need it to be working in the same way, as I'm mocking collaborators and with GroovyMock they evaluate to false, and throw...

``` Example test http://meetspock.appspot.com/script/5700735861784576 ``` Reported by `janusz.slota` on 2014-04-28 17:28:47

``` Why is your test depending on the truthiness of a mock object? What's the use case? ``` Reported by `pniederw` on 2014-04-28 17:31:12

``` This will do the trick: def groovyMock = GroovyMock(Map) { asBoolean() >> true } Perhaps this should be the default. Not sure. ``` Reported by `pniederw` on 2014-04-28 17:33:29

``` void initialize() { if( ! config) { throw new RuntimeException('configuration has not been injected') } // ... initialize logic } I'm not saying it's good design to have initialize...

``` I see. Thanks for the explanation. By the way, GroovyMock() should only be used where Mock() isn't good enough. ``` Reported by `pniederw` on 2014-04-28 17:37:27

``` >> def groovyMock = GroovyMock(Map) { asBoolean() >> true } Great - thanks for reply. Works perfectly :-) ``` Reported by `janusz.slota` on 2014-04-28 17:39:11