created tests for user ability

This commit is contained in:
raluka 2015-08-26 13:07:13 +02:00
parent b780996128
commit e10a2491d3
3 changed files with 13 additions and 7 deletions

View file

@ -25,7 +25,7 @@
%b.caret
%ul.dropdown-menu
= render 'layouts/user_menu'
- if can? :read, Comment
- if can? :index, Comment #TODO modify condition
%ul.nav.navbar-nav.navbar-right
%li.dropdown
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#", id: "unread-comments-preview"}