blog.robotex.de

Rails: Fixing uninitialized constant Admin::DashboardController when testing with rspec

When trying to test active admin with rails and rspec and your get following error:

ActionController::RoutingError:
        uninitialized constant Admin::DashboardController

Try adding following lines to your rails_helper:

require_relative 'dummy/app/admin/dashboard'
require_relative 'dummy/config/routes'

Back