xaviershay/rspec-fire — pull request #24 by myronmarston (2012-08-11 00:52:54+00:00)
Title: Fix use of const_get/const_defined? to handle undefined consts like Foo::Hash

When you name a nested constant that ends in a name that matches a top-level constant (such as "Foo::Hash"), rspec-fire was verifying the presence of a stubbed method on ::Hash if "Foo::Hash" was not defined. 1.9's const_get/const_defined? accepts a flag argument to have it ignore inherited/top-level constants, but 1.8 doesn't accept this argument, so we have to conditionally define methods to handle this properly.

@xaviershay -- we were just bit by this bug. It'd be nice to get an official release with this fix out soonish--let me know if I can help with that.