On 21 Oct 2009, at 08:41, Pat Maddox wrote:

wait why do you want to do this??  Just use a regular hash and do
state-based assertions on it.  Or determine the role that this
hash-like thing is doing, and use a mock to define a proper interface.
Ashley's solution works but I am very skeptical that the approach is
a good one.  Can you post some code?

I had wondered the same thing myself... but I figured if my suspicions were right, a fallout problem would be posted soon enough :)

Ashley

--
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
http://aviewfromafar.net/







_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to