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
7575 end
7676
7777 def id_for_option value
78- return "#{ attr_key } _#{ value } "
78+ return "#{ @tag_attributes [ :id ] } _#{ value } "
7979 end
8080
8181
Original file line number Diff line number Diff line change @@ -110,11 +110,11 @@ def form_config
110110
111111 visit '/example'
112112
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"]' )
115115
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"]' )
118118 end
119119
120120 end
You can’t perform that action at this time.
0 commit comments