mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
parent
33c814e1b9
commit
d2931ea7f0
3 changed files with 19 additions and 1 deletions
|
|
@ -25,6 +25,16 @@ class ProjectsControllerTest < ActionController::TestCase
|
|||
assert_equal 2, assigns['deferred_todos'].size
|
||||
end
|
||||
|
||||
def test_sorted_current_in_review
|
||||
p = projects(:timemachine)
|
||||
login_as :admin_user
|
||||
get :review
|
||||
current_projects = assigns['current_projects']
|
||||
assert_equal 2, current_projects.length
|
||||
assert_equal projects(:gardenclean), current_projects[0]
|
||||
assert_equal projects(:moremoney), current_projects[1]
|
||||
end
|
||||
|
||||
def test_show_exposes_next_project_in_same_state
|
||||
login_as :admin_user
|
||||
get :show, :id => projects(:timemachine).to_param
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue