title: superclass must be a Class in rspec after ruby upgrade
body: <p>I have a class that looks like this:</p>
  
  <pre><code>module API
    module MyNamespace
      class Base &lt; ActiveRecord::Base
      end
    end
  end
  
  module API
    module MyNamespace
      class MyClass &lt; Base
      end
    end
  end
  </code></pre>
  
  <p>When trying to upgrade from ruby 1.9.3 to 2.1.5, I started getting an error when executing the entire spec suite.</p>
  
  <p><code>superclass must be a Class (Module given)</code></p>
  
  <p>This is strange, because <code>API::MyNamespace::Base</code> is a class. Also if I run the tests as part of a smaller run (individual spec, or everything in the API namespace), then everything is fine.</p>
  
  <p>I'm not really sure what to try here. </p>