File tree Expand file tree Collapse file tree 6 files changed +17
-3
lines changed
Expand file tree Collapse file tree 6 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def empty(...)
4444 def default_attrs
4545 {
4646 data : {
47- controller : "protos--popover protos--command " ,
47+ controller : "protos--popover" ,
4848 "protos--popover-options-value" : JSON . generate ( options )
4949 }
5050 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def empty(...)
4242
4343 def default_attrs
4444 {
45- data : { controller : "protos--command protos-- modal" }
45+ data : { controller : "protos--modal" }
4646 }
4747 end
4848 end
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ def template(&block)
99
1010 private
1111
12+ def default_attrs
13+ {
14+ data : { controller : "protos--command" }
15+ }
16+ end
17+
1218 def theme
1319 {
1420 container : tokens ( "menu" )
Original file line number Diff line number Diff line change 1010 end
1111
1212 it "adds the stimulus controllers" do
13- expect ( page ) . to have_css ( "[data-controller='protos--popover protos--command ']" )
13+ expect ( page ) . to have_css ( "[data-controller='protos--popover']" )
1414 end
1515end
Original file line number Diff line number Diff line change 1212 it "adds the styles" do
1313 expect ( page ) . to have_css ( ".menu" )
1414 end
15+
16+ it "connects the stimulus controller for command" do
17+ expect ( page ) . to have_css ( "[data-controller='protos--command']" )
18+ end
1519end
Original file line number Diff line number Diff line change 88 it "renders the container" do
99 expect ( page ) . to have_content "Test"
1010 end
11+
12+ it "connects the stimulus controller for the modal" do
13+ expect ( page ) . to have_css ( "[data-controller='protos--modal']" )
14+ end
1115end
You can’t perform that action at this time.
0 commit comments