Commit de9758d
Changed files (3)
app
controllers
views
dashboard
spec
controllers
app/controllers/dashboard_controller.rb
@@ -0,0 +1,4 @@
+class DashboardController < ApplicationController
+ def index
+ end
+end
app/views/dashboard/index.html.erb
spec/controllers/dashboard_controller_spec.rb
@@ -0,0 +1,10 @@
+require "spec_helper"
+
+describe DashboardController do
+ context "#index" do
+ it "loads the current user" do
+ get :index
+ assigns(:current_user).should == user
+ end
+ end
+end