fixed dashboard test

This commit is contained in:
maxwell 2010-06-15 21:10:59 -07:00
parent 9e89b2e0a7
commit b8e2fd018f

View file

@ -1,10 +1,10 @@
require File.dirname(__FILE__) + '/../spec_helper' require File.dirname(__FILE__) + '/../spec_helper'
describe DashboardController do describe DashboardController do
fixtures :all render_views
integrate_views
it "index action should render index template" do it "index action should render index template" do
request.env['warden'] = mock_model(Warden, :authenticate? => @user, :authenticate! => @user)
get :index get :index
response.should render_template(:index) response.should render_template(:index)
end end