mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 10:10:12 +01:00
All specs passing now
This commit is contained in:
parent
9accea5bf1
commit
a59ede5aad
4 changed files with 20 additions and 40 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue