Re: [rspec-users] Stubs and contract tests

2012-05-11 Thread David Chelimsky
On Fri, May 11, 2012 at 9:24 AM, Alexandre de Oliveira < chavedomu...@gmail.com> wrote: > Hey guys, could you help me (in)validating an idea? > > As you might know, Contract tests solve a problem stubs have: if the > object interface changes, the stubbed tests will continue passing. > > In RSpec,

[rspec-users] Stubs and contract tests

2012-05-11 Thread Alexandre de Oliveira
Hey guys, could you help me (in)validating an idea? As you might know, Contract tests solve a problem stubs have: if the object interface changes, the stubbed tests will continue passing. In RSpec, it's common to use a shared_context to describe contracts, so both Posts and Comments tests would h