Please sign in to comment.
Fix use of const_get/const_defined? to handle undefined consts like F…
…oo::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.
- Loading branch information...
Showing with 48 additions and 3 deletions.