lucaspiller/espec — Issue #17: instance variable support
Author: benmmurphy
Created: 2011-12-27 19:48:39+00:00
State: open

rspec like instance variables

we should be able to support

Foo@ = setup_variable()

do_stuff_with(Foo@)

is that syntax too weird?

not sure exactly how this should work with before/after each/all

alternative 1)

each group/example creates its own variable context which is a copy of the outer variable context. this means examples/groups on the same level won't interfere with each other. but it also means an after_all in a group will only see variables set by a before_all in the same group or an outer group which limits what an after_all can clean up. i think that makes sense.

alternative 2)

do whatever rspec does...