Fixes test for user deletion

This commit is contained in:
Gopesh Tulsyan 2014-07-18 20:45:56 +05:30
parent 9a1db8419c
commit 1c90edd4c3
2 changed files with 6 additions and 8 deletions

View file

@ -70,7 +70,7 @@
- if current_user.id == user.id or user.role_ids.include? 3
=link_to 'Delete',admin_user_path(user), :method => :delete , :data => {:confirm => 'Are you sure ?'}, :disabled => true,:class => "btn btn-primary disabled btn-danger",:role => "button"
- else
=link_to 'Delete',admin_user_path(user), :method=> :delete , :data=> {:confirm => 'Are you sure ?'},:class => "btn btn-primary btn-danger"
=link_to 'Delete',admin_user_path(user), :method=> :delete , :data=> {:confirm => 'Are you sure ?'},:class => "btn btn-primary btn-danger", id: "user-delete-#{user.id}"
:javascript