Use string interpolation
This commit is contained in:
parent
83be054884
commit
80ed589a17
10 changed files with 14 additions and 14 deletions
|
@ -8,12 +8,12 @@ describe RenderPartialService do
|
|||
describe 'navbar' do
|
||||
subject { service.navbar }
|
||||
|
||||
it { is_expected.to eq 'layouts/navbars/navbar_' + controller.to_s.parameterize + '_' + method.to_s }
|
||||
it { is_expected.to eq "layouts/navbars/navbar_#{controller.to_s.parameterize}_#{method.to_s}" }
|
||||
end
|
||||
|
||||
describe 'left_panel' do
|
||||
subject { service.left_panel }
|
||||
|
||||
it { is_expected.to eq 'layouts/left_panels/left_panel_' + controller.to_s.parameterize + '_' + method.to_s }
|
||||
it { is_expected.to eq "layouts/left_panels/left_panel_#{controller.to_s.parameterize}_#{method.to_s}" }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue