Rails view specs - Shouldn't a variable created with assign method be reset to nil between tests?

5 views
Skip to first unread message

Arif Bandali

unread,
Apr 26, 2014, 5:41:14 PM4/26/14
to rs...@googlegroups.com
Hi all,

rspec 2.14.8

I have a view spec with 2 tests and an call to assign creates an instance variable but it does not clear before the next test begins. Shouldn't it?

The tests are in this gist, with the assign call being highlighted.


I would expect @beneficiary to be nil for the 2nd test however it doesn't seem to be.

Thanks!
Reply all
Reply to author
Forward
0 new messages