File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
app/concepts/matestack/ui/core/form/select
spec/usage/components/form/select Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def init_value
75
75
end
76
76
77
77
def id_for_option value
78
- return "#{ attr_key } _#{ value } "
78
+ return "#{ @tag_attributes [ :id ] } _#{ value } "
79
79
end
80
80
81
81
Original file line number Diff line number Diff line change @@ -110,11 +110,11 @@ def form_config
110
110
111
111
visit '/example'
112
112
113
- expect ( page ) . to have_selector ( '#group-one-radio [name="array_input_one_foo"]' )
114
- expect ( page ) . to have_selector ( '#group-one-radio [name="array_input_one_bar"]' )
113
+ expect ( page ) . to have_selector ( '#group-one-radio_foo [name="array_input_one_foo"]' )
114
+ expect ( page ) . to have_selector ( '#group-one-radio_bar [name="array_input_one_bar"]' )
115
115
116
- expect ( page ) . to have_selector ( '#group-two-radio [name="array_input_two_foo"]' )
117
- expect ( page ) . to have_selector ( '#group-two-radio [name="array_input_two_bar"]' )
116
+ expect ( page ) . to have_selector ( '#group-two-radio_foo [name="array_input_two_foo"]' )
117
+ expect ( page ) . to have_selector ( '#group-two-radio_bar [name="array_input_two_bar"]' )
118
118
end
119
119
120
120
end
You can’t perform that action at this time.
0 commit comments