-
NoMethodError undefined method `shared_examples_for’ for main:Object for bundle gem rspec
undefined method shared_examples_for for main:Object in rspec for bundle gem generated rspec file.
-
rspec-rails tricks: Hacking Your Routes for a Spec
I don’t know that this is so much a reminder of “What can be done with rspec-rails” as a note that, “If you do this will rspec-rails, you will also need to undo it.” Today’s note: If you hack the application routes for a controller test, you have to reload routes. The original problem This…
-
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.