File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,6 @@ def response
465
465
components {
466
466
div id : "my-component" do
467
467
slot @options [ :my_first_slot ]
468
- br
469
468
slot @options [ :my_second_slot ]
470
469
end
471
470
}
@@ -516,7 +515,6 @@ def my_second_simple_slot
516
515
< span id ="my_simple_slot ">
517
516
some content
518
517
</ span >
519
- < br />
520
518
< span id ="my_simple_slot ">
521
519
foo from page
522
520
</ span >
@@ -568,9 +566,7 @@ def response
568
566
components {
569
567
div id : "my-other-component" do
570
568
slot @options [ :slots ] [ :my_slot_from_component ]
571
- br
572
569
slot @options [ :slots ] [ :my_slot_from_page ]
573
- br
574
570
plain @foo
575
571
end
576
572
}
@@ -613,11 +609,9 @@ def my_slot_from_page
613
609
< span id ="my-slot-from-component ">
614
610
foo from component
615
611
</ span >
616
- < br />
617
612
< span id ="my-slot-from-page ">
618
613
foo from page
619
614
</ span >
620
- < br />
621
615
foo from other component
622
616
</ div >
623
617
</ div >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def response
27
27
28
28
static_output = page . html
29
29
30
- expected_static_output = <<~HTML
30
+ expected_static_output_1 = <<~HTML
31
31
hello
32
32
< br >
33
33
world!
@@ -41,7 +41,21 @@ def response
41
41
world!
42
42
HTML
43
43
44
- expect ( stripped ( static_output ) ) . to include ( stripped ( expected_static_output ) )
44
+ expected_static_output_2 = <<~HTML
45
+ hello
46
+ < br />
47
+ world!
48
+
49
+ hello
50
+ < br />
51
+ < br />
52
+ < br />
53
+ < br />
54
+ < br />
55
+ world!
56
+ HTML
57
+
58
+ expect ( stripped ( static_output ) ) . to ( include ( stripped ( expected_static_output_1 ) ) or include ( stripped ( expected_static_output_2 ) ) )
45
59
end
46
60
47
61
end
You can’t perform that action at this time.
0 commit comments