All specs passing now

This commit is contained in:
Eric Allen 2011-02-28 22:58:39 -08:00
parent 9accea5bf1
commit a59ede5aad
4 changed files with 20 additions and 40 deletions

View file

@ -7,7 +7,7 @@ describe ProjectsController do
projects = mock(:project_list, :build => project,
:active => mock(:meh, :count => 0), :size => 0)
user = mock_model(User, :projects => projects, :prefs => {},
user = mock_model(User, :projects => projects, :prefs => mock(:locale => :en),
:contexts => mock(:context_list, :find => []))
controller.stub!(:current_user).and_return(user)
controller.stub!(:login_required).and_return(true)