Newer
Older
maxwell
a validé
require File.dirname(__FILE__) + '/../spec_helper'
describe DashboardsController do
maxwell
a validé
request.env['warden'] = mock_model(Warden, :authenticate? => @user, :authenticate! => @user)
Factory.create(:user, :profile => Profile.create( :first_name => "bob", :last_name => "smith"))
end
it "index action should render index template" do
maxwell
a validé
get :index
response.should render_template(:index)
end
danielvincent
a validé
it "on index sets a person's variable" do
Factory.create :person
maxwell
a validé