Skip to content

Commit d2dbce3

Browse files
committed
Fix whitespace and formatting consistency in template handler and specs
1 parent ed37dc0 commit d2dbce3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/liquid-rails/template_handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ def compilable?
4141
end
4242
end
4343
end
44-
end
44+
end

spec/lib/liquid-rails/template_handler_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
it 'renders with liquid template' do
66
visit '/'
77

8-
expect(page.body).to eq 'Liquid on Rails'
8+
expect(page.body).to eq('Liquid on Rails')
99
end
1010

1111
it 'sets content_type as html by default' do
@@ -19,28 +19,28 @@
1919
it 'renders with layout' do
2020
visit '/index_with_layout'
2121

22-
expect(page.body).to eq "Application Layout\nLiquid on Rails"
22+
expect(page.body).to eq("Application Layout\nLiquid on Rails")
2323
end
2424
end
2525

2626
context 'render with partial' do
2727
it 'no full path for the current controller' do
2828
visit '/index_partial'
2929

30-
expect(page.body).to eq "Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial"
30+
expect(page.body).to eq("Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial")
3131
end
3232

3333
it 'full path' do
3434
visit '/index_partial_with_full_path'
3535

36-
expect(page.body).to eq "Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial"
36+
expect(page.body).to eq("Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial")
3737
end
3838

3939
it 'respects namespace of original template for partials path' do
4040
visit '/foospace/bar/index_partial'
41+
4142
expect(page.body.strip).to eq("Foospace::BarController\n\nBar Partial")
4243
end
43-
4444
end
4545

4646
context 'render with filter' do

0 commit comments

Comments
 (0)