-
NoMethodError undefined method `shared_examples_for’ for main:Object for bundle gem rspec
-
rspec-rails tricks: Hacking Your Routes for a Spec
-
Circular dependency detected while autoloading constant
I ended up with this error because the class name I was referencing was ClassNameXML but I was trying to call it as ClassNameXml. Not following naming conventions combined with not calling a class by its properly capitalized name will trigger this. I burned an hour figuring this out. I hope you don’t have to.