gregbell/active_admin — Issue #918: Testing active admin returns "undefined method `view_factory`"
Author: gabeodess
Created: 2012-01-18 18:18:45+00:00
State: open

I am using Spork, Guard, Capybara, and TestUnit.

When I try to do a simple test:

visit new_admin_user_session_path
fill_in 'admin_user[email]', with:'foobar@example.com'
fill_in 'admin_user[password]', with:'password'
click_button 'Login'

I get the following error on the last line (click_button 'Login'):

ActionView::Template::Error: undefined local variable or method `view_factory' for #<#:0x000001070c7648>

Please advise.