timcharper/spork — Issue #153: Spork "undefined `model_name` for Class:Class` with Spork 0.9.0rc9, rails 3.1, active_admin
Author: andreashappe
Created: 2011-10-25 18:12:47+00:00
State: open

Hi,
when running a simple testcase with rspec a reference to an active_admin conroller does not work:

| visit new_admin_user_path

leads to the following exception:

| the admin countroller should check for existence of job
| Failure/Error: visit(new_admin_user_path)
| ActionView::Template::Error:
| undefined method `model_name' for Class:Class
| # ./spec/requests/admin_create_users_spec.rb:11:in `block (2 levels) in '

First I thought that some modul loading code got mangled but after some tinkering around I've found out that "rake spec" actually work without an error.

Any idea? Do you need additional information? I'd really like to use spork again.

cheers, Andreas