From b8e2fd018f687f8437fb867858283f308b665b55 Mon Sep 17 00:00:00 2001 From: maxwell Date: Tue, 15 Jun 2010 21:10:59 -0700 Subject: [PATCH] fixed dashboard test --- spec/controllers/dashboard_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/dashboard_controller_spec.rb b/spec/controllers/dashboard_controller_spec.rb index 010a62677..0b20b21ab 100644 --- a/spec/controllers/dashboard_controller_spec.rb +++ b/spec/controllers/dashboard_controller_spec.rb @@ -1,10 +1,10 @@ require File.dirname(__FILE__) + '/../spec_helper' describe DashboardController do - fixtures :all - integrate_views + render_views it "index action should render index template" do + request.env['warden'] = mock_model(Warden, :authenticate? => @user, :authenticate! => @user) get :index response.should render_template(:index) end