Dependency framework for RSpec

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I’ve been having difficulty sharing verification code between
different contexts when using RSpec. For example, there is common
verification code, between the following contexts, which checks that
the stack is empty.

An empty stack

    • is empty

A stack with one item

    • is empty when popped

How others are handling this problem?

One idea is to somehow apply Rake’s task-dependency framework to
contexts or their verification code. Though I’m not quite sure how
to make this work.

Thanks for your consideration.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFErVzfmV9O7RYnKMcRAhMyAKCrbIsDmOetUD63O5yfXNJBuTSC0gCgodU+
nRaueR+B7uwn9MZmARc0cUQ=
=OPZ0
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs