empty non-saved project caused rss builder to fail

This commit is contained in:
Reinier Balt 2013-05-13 12:50:10 +02:00
parent 54b106d96b
commit 80974fb0d5
3 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@ class ProjectsControllerTest < ActionController::TestCase
def test_todo_state_is_project_hidden_after_hiding_project
p = projects(:timemachine)
todos = p.todos.find_in_state(:all, :active)
todos = p.todos.active
login_as(:admin_user)
xhr :post, :update, :id => 1, "project"=>{"name"=>p.name, "description"=>p.description, "state"=>"hidden"}
todos.each do |t|
@ -55,7 +55,7 @@ class ProjectsControllerTest < ActionController::TestCase
def test_not_done_counts_after_hiding_and_unhiding_project
p = projects(:timemachine)
todos = p.todos.find_in_state(:all, :active)
todos = p.todos.active
login_as(:admin_user)
xhr :post, :update, :id => 1, "project"=>{"name"=>p.name, "description"=>p.description, "state"=>"hidden"}
xhr :post, :update, :id => 1, "project"=>{"name"=>p.name, "description"=>p.description, "state"=>"active"}