push
github
1 of 2 new or added lines in 1 file covered. (50.0%)
186 existing lines in 27 files now uncovered.2249 of 3354 relevant lines covered (67.05%)
6.91 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
ActiveAdmin.register Role do |
1✔ |
4 |
menu label: 'Roles', parent: 'Others', priority: 93 |
1✔ |
5 |
|
|
6 |
actions :index, :show, :edit, :update, :new, :create |
1✔ |
7 |
|
|
8 |
permit_params :name
|
1✔ |
9 |
|
|
10 |
filter :name
|
1✔ |
11 |
|
|
12 |
index do
|
1✔ |
13 |
selectable_column |
× |
14 |
id_column |
× |
UNCOV
15
|
column 'Nombre', :name |
× |
UNCOV
16
|
actions |
× |
17 |
end
|
|
18 |
|
|
19 |
show do |role|
|
1✔ |
20 |
panel 'InformaciĆ³n del rol' do |
× |
UNCOV
21
|
attributes_table_for role do
|
× |
UNCOV
22
|
row('Nombre', &:name) |
× |
23 |
end
|
|
24 |
end
|
|
25 |
end
|
|
26 |
|
|
27 |
form do |f|
|
1✔ |
28 |
f.semantic_errors |
× |
UNCOV
29
|
f.inputs 'InformaciĆ³n del rol' do |
× |
30 |
f.input :name, label: 'Nombre' |
× |
31 |
end
|
|
UNCOV
32
|
f.actions |
× |
33 |
end
|
|
34 |
end
|