Skip to content
Extraits de code Groupes Projets
dashboard_controller_spec.rb 321 octets
Newer Older
  • Learn to ignore specific revisions
  • require File.dirname(__FILE__) + '/../spec_helper'
     
    describe DashboardController do
    
    maxwell's avatar
    maxwell a validé
     render_views
    
      
      it "index action should render index template" do
    
    maxwell's avatar
    maxwell a validé
        request.env['warden'] = mock_model(Warden, :authenticate? => @user, :authenticate! => @user)
    
        get :index
        response.should render_template(:index)
      end