File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,4 +41,4 @@ def compilable?
41
41
end
42
42
end
43
43
end
44
- end
44
+ end
Original file line number Diff line number Diff line change 5
5
it 'renders with liquid template' do
6
6
visit '/'
7
7
8
- expect ( page . body ) . to eq 'Liquid on Rails'
8
+ expect ( page . body ) . to eq ( 'Liquid on Rails' )
9
9
end
10
10
11
11
it 'sets content_type as html by default' do
19
19
it 'renders with layout' do
20
20
visit '/index_with_layout'
21
21
22
- expect ( page . body ) . to eq "Application Layout\n Liquid on Rails"
22
+ expect ( page . body ) . to eq ( "Application Layout\n Liquid on Rails" )
23
23
end
24
24
end
25
25
26
26
context 'render with partial' do
27
27
it 'no full path for the current controller' do
28
28
visit '/index_partial'
29
29
30
- expect ( page . body ) . to eq "Application Layout\n Liquid on Rails\n \n Home Partial\n Shared Partial"
30
+ expect ( page . body ) . to eq ( "Application Layout\n Liquid on Rails\n \n Home Partial\n Shared Partial" )
31
31
end
32
32
33
33
it 'full path' do
34
34
visit '/index_partial_with_full_path'
35
35
36
- expect ( page . body ) . to eq "Application Layout\n Liquid on Rails\n \n Home Partial\n Shared Partial"
36
+ expect ( page . body ) . to eq ( "Application Layout\n Liquid on Rails\n \n Home Partial\n Shared Partial" )
37
37
end
38
38
39
39
it 'respects namespace of original template for partials path' do
40
40
visit '/foospace/bar/index_partial'
41
+
41
42
expect ( page . body . strip ) . to eq ( "Foospace::BarController\n \n Bar Partial" )
42
43
end
43
-
44
44
end
45
45
46
46
context 'render with filter' do
You can’t perform that action at this time.
0 commit comments