30 Mar '13, 5pm

test

Over the past year I've written the same test a few times. This test accomplishes what I'm looking for when I write it - verification that my-fn isn't called. However, it doesn't prevent me from future regressions where my-fn is called with 0, 2, or 2+ arguments. After being bitten by this issue a few times I decided to add an argument matching function that will accept any value for the argument at it's index, and any value for all of the arguments at a greater index. This argument matching function is anything& The following example is similar to what's above, except any call to my-fn will result in a failure My original intent was to protect against the scenario I described above*; however, what I ended up with is actually flexible enough to allow me to test other situations as well. For example, I've often found myself testing that a log message was written at a certai...

Full article: http://blog.jayfields.com/2013/03/clojure-expectations-ig...

Tweets

Jay Fields' Thoughts: Clojure: Expectations Ign...

blog.jayfields.com 21 Mar '13, 10am

Over the past year I've written the same test a few times. This test accomplishes what I'm looking for when I write it - v...

Latest ironblogger post on SimpleBDD https://t....

pivotallabs.com 30 Mar '13, 4pm

A small number of projects here in New York have adopted my extremely simple behaviour driven development library, SimpleB...

Compressing large data sets in Redis - Ruby tes...

rubyflow.com 31 Mar '13, 11pm

Compressing large data sets in Redis - Ruby test case Posted by mencio on March 31, 2013 — 0 comments A just wrote a post ...

@bkirz no, it doesn't and it encourages people ...

blog.zenspider.com 02 Apr '13, 12am

The file this test came from is chock full of tests written just like this one. What exactly is it testing? The test name ...

Clojure: Expectations Interaction Tests For Jav...

blog.jayfields.com 19 Mar '13, 7pm

I recently ran into some code that forced me to integrate with a Java library. While using the library I found myself want...

Jay Fields' Thoughts: Clojure: Expectations Int...

blog.jayfields.com 19 Mar '13, 6pm

I recently ran into some code that forced me to integrate with a Java library. While using the library I found myself want...

@Sharpeneer Strawbale fire test at BRE by Bee a...

greenbuilder.com 26 Mar '13, 9pm

Hi Baleheads in the SB fire tests Barbara and Bee were involved with in the UK, even though the render didn't seal to the ...