Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. sgringwe revised this gist Jul 22, 2014. 1 changed file with 1 addition and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    # I was getting this error randomly in my specs:

    Circular dependency detected while autoloading constant UsersController
    # Circular dependency detected while autoloading constant UsersController

    # the fix for me was changing the following mistake:

  2. sgringwe created this gist Jul 22, 2014.
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # I was getting this error randomly in my specs:

    Circular dependency detected while autoloading constant UsersController

    # the fix for me was changing the following mistake:

    school = FactoryGirl.create(:school)

    # to be

    let(:school) { FactoryGirl.create(:school) }