Skip to content


Subversion checkout URL

You can clone with
Download ZIP


failed spec because of cruby bug #149

nurse opened this Issue · 1 comment

2 participants


Usually failed spec because of CRuby's bug should be guard with ruby_bug.
But language/module_spec.rb fails as following only on Ruby 1.9.2.

The module keyword reopens a module included in Object ERROR
NameError: uninitialized constant ModuleSpecs::IncludedInObject::IncludedModuleSpecs::Reopened
/home/naruse/git/rubyspec/language/module_spec.rb:28:in `block (2 levels) in '
/home/naruse/git/rubyspec/language/module_spec.rb:4:in `'

It passes on 1.8 and 1.9.3 or later.
Moreover 1.9.2 won't backport non security issues.
How should I do on such case?


So the problem is that the ruby_bug expects a single, continuous version range and this bug has a discontinuous version range. These casen are very rare. I think there are only one or two others. At some point, I may change ruby_bug to take ranges or something. For now, use a shared spec and one ruby_bug guard in a ruby_version_is guard for the range that fails, and other ruby_version_is guards for the ranges that don't fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.