Hi,
I just upgraded to 2.11.3 from 2.10, and I'm having a bit of trouble
figuring out how to update one of my tests.
It used to read
should_set_session(:user) {@
user.id}
The block wasn't evaluated till the test ran.
Now I'm trying to figure out how to pass a block into to(value=nil,
&block):
should set_session(:user).to(nil, ???)
I keep getting syntax errors. I'm sure it's simple, but can someone
please clue me in? None of the following are valid replacements
for ???:
{@
user.id}
{|x| @
user.id}
do @
user.id end
Yes this is basic Ruby syntax, not a shoulda bug, but an example of
correct usage in the shoulda docs would help *immensely* for those
upgrading to the new matchers.
Thanks,
Curran