Commit aec9f919a196bbacf9a60c79899c2d2e0c668421
1 parent
bcb8a1fb
Exists in
master
and in
29 other branches
ActionItem441: add pending tests
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2014 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
app/views/tasks/_add_member.rhtml
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | @roles = Role.find(:all).select{ |r| r.has_kind?('Profile') } |
28 | 28 | %> |
29 | 29 | <% @roles.each do |r| %> |
30 | - <%= labelled_check_box(r.name, 'task[roles][]', r.id, true) %><br/> | |
30 | + <%= labelled_check_box(r.name, 'task[roles][]', r.id, task.target.members.nil?) %><br/> | |
31 | 31 | <% end %> |
32 | 32 | </p> |
33 | 33 | </div> | ... | ... |
test/functional/tasks_controller_test.rb
... | ... | @@ -64,4 +64,10 @@ class TasksControllerTest < Test::Unit::TestCase |
64 | 64 | |
65 | 65 | should 'affiliate roles to user after finish add member task' |
66 | 66 | |
67 | + should 'display form to add members task' | |
68 | + | |
69 | + should 'display all roles checked if target has no members' | |
70 | + | |
71 | + should 'display member role checked if target has members' | |
72 | + | |
67 | 73 | end | ... | ... |