diaspora/spec/controllers/dashboard_controller_spec.rb
2010-06-15 21:10:59 -07:00

11 lines
320 B
Ruby

require File.dirname(__FILE__) + '/../spec_helper'
describe DashboardController do
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
end