06 Jul '13, 9pm

Geek glossary: stub via @pivotallabs

Over the next few blog posts I intend to bang a few more nails in the coffin of the widespread misunderstanding of stubs, mocks and spies. Many before me have had a crack at this (see Ben Moss’s post for discussion and links), and many of those blog posts and books helped me to understand what exactly these code design tools are for. I’m still no expert, but I do think about the application of these tools with unhealthy frequency. I intend to focus primarily on the usage of these terms inside the Ruby ecosystem, but these definitions also apply to other languages. Let’s start with stubs. They’re a useful TDD and design tool. They are not mocks, and they arguably precede mocks in the history of TDD tooling. Like most terms surrounded in confusion, there are a few applications of the same idea: Pure stub objects Partial stub objects Stub methods Stub protocols Stub services ...

Full article: http://pivotallabs.com/geek-glossary-stub/

Tweets

Geek glossary: mock via @pivotallabs

pivotallabs.com 07 Jul '13, 5pm

This is my second post on the trinity of test tools known as ‘test doubles’. The first covered stubs. This one is all abou...

Learning Processes via @pivotallabs

pivotallabs.com 07 Jul '13, 7am

Every person have their own way of learning, for each one of us there is a method that works better. We have to try and un...

Geek glossary: re-entrant and idempotent via @p...

pivotallabs.com 23 Jun '13, 8pm

Whilst writing some Chef recipes for our project’s Continuous Integration server the other day, my pair and I came across ...

Tech team at @charitywater getting our geek on....

instagram.com 10 Jul '13, 10pm

Tech team at @charitywater getting our geek on. Learning Ruby on Rails with @rael

Spying on Your Tests with VCR #NOTPRISM

pivotallabs.com 06 Jul '13, 1pm

VCR is a great tool for recording http requests during a test suite so that you can play them back later when the external...