mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
empty non-saved project caused rss builder to fail
This commit is contained in:
parent
54b106d96b
commit
80974fb0d5
3 changed files with 4 additions and 4 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue