thumblemonks / riot

Riot is a fast, expressive, and contextual ruby unit testing framework
http://thumblemonks.github.com/riot/
MIT License
314 stars 28 forks source link

Riot fix for Ruby 1.9.2 #13

Closed skade closed 14 years ago

skade commented 14 years ago

Ruby 1.9.2 does not allow passing lambda objects to instance_eval anymore {1}.

This patch fixes this nuisance, uses "proc" instead. It passes on 1.9.2 again and still works on 1.8.7 and 1.9.1.

Regards, Florian

{1}: According to http://www.ruby-forum.com/topic/213325 , this was always the case, it was only working by accident.

gus commented 14 years ago

Applied and version bumped to 0.11.4.

Thanks!