File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- require_relative " ../../support/utils"
1
+ require_relative ' ../../support/utils'
2
2
include Utils
3
3
4
- describe " Section Component" , type : :feature , js : true do
4
+ describe ' Section Component' , type : :feature , js : true do
5
5
6
- it " Example 1" do
6
+ it ' Example 1' do
7
7
8
8
class ExamplePage < Page ::Cell ::Page
9
9
10
10
def response
11
11
components {
12
- nav id : " my-id" , class : " my-class" do
13
- plain " Hello World" #optional content
12
+ section id : ' my-id' , class : ' my-class' do
13
+ plain ' Hello World' #optional content
14
14
end
15
15
}
16
16
end
17
17
18
18
end
19
19
20
- visit " /example"
20
+ visit ' /example'
21
21
22
22
static_output = page . html
23
23
24
24
expected_static_output = <<~HTML
25
- < nav id ="my-id " class ="my-class ">
25
+ < section id ="my-id " class ="my-class ">
26
26
Hello World
27
- </ nav >
27
+ </ section >
28
28
HTML
29
29
30
30
expect ( stripped ( static_output ) ) . to include ( stripped ( expected_static_output ) )
You can’t perform that action at this time.
0 commit comments