fixed dashboard test
This commit is contained in:
parent
9e89b2e0a7
commit
b8e2fd018f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue