|def some_method; super; end|
|class MyBaseClass; end|
|class MySubClass < MyBaseClass;|
|# To trigger this bug, we must include the module in the base class after|
|# the module has already been included in the subclass. If we move this line|
|# above the subclass declaration, this bug will not occur.|
UGH, just spent WAAAY too much time debugging this bug myself while upgrading some code to ruby 1.9.
As a note for those using rspec < 2.6, a workaround is to use the syck YAML parser instead of psych, which is a new default in ruby 1.9. If you can upgrade your rspec version, that's definitely the best way, as syck has issues of its own.