[Rspec-devel] What is a context?

Jay Levitt lists-rspec at shopwatch.org
Sun Jul 16 14:04:31 EDT 2006

David Chelimsky wrote:
> On 7/16/06, Jay Levitt <lists-rspec at shopwatch.org> wrote:
> Glad you like this. I think story is higher level - a story contains
> several scenarios (each of which might be in a different context, so
> it's not a direct hierarchical mapping).

Yes, that makes sense.

>> Today, a context calls setup, teardown, and rollback. Tomorrow, a
>> context calls setup and teardown, but a scenario calls rollback.  A step
>> is just a synonym for a specification.  A context has an anonymous
>> scenario by default, so that if we hit a spec with no explicit scenario,
>> rollback still works the way it does today.
> I'd really like to avoid rollback and go straight for "tomorrow". The
> term rollback brings all sorts of implications that I'd rather avoid,
> for one. The other thing is that I don't want to start gumming up the
> DSL with attributes like that - especially if it's only temporary!

Oh, I meant that this is how RSpec works today, in my mind.  If that's 
not really how it works, then my brilliant idea doesn't work at all.


More information about the Rspec-devel mailing list