[rspec-users] Possible subject/its bug?

Ashley Moran ashley.moran at patchspace.co.uk
Sat Nov 13 07:50:43 EST 2010


Hi

I recently did a coding kata and ran into some strange behaviour.  The code is here[1], the weirdness under the comment "Doesn't work... RSpec bug?".

Basically, all the `subject` / `its(:sequence)` examples seem to work, except the one split into the two contexts.  In this case `its(:sequence)` produces an empty array.

Anyone got any idea what's going on?

Cheers
Ash

[1] https://github.com/ashleymoran/xpman_even_fib/blob/ashleymoran-seb-201011112025/spec/euler_fib_spec.rb

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



More information about the rspec-users mailing list