2016-11-22 15:17:37 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe RenderPartialService do
|
|
|
|
let(:service) { RenderPartialService.new(controller, method) }
|
|
|
|
let(:controller) { ApplicationController }
|
|
|
|
let(:method) { :index }
|
|
|
|
|
|
|
|
describe 'navbar' do
|
|
|
|
subject { service.navbar }
|
|
|
|
|
2016-12-01 18:09:26 +01:00
|
|
|
it { is_expected.to eq 'layouts/navbars/navbar_'+controller.to_s.parameterize + '_' + method.to_s }
|
2016-11-22 15:17:37 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
describe 'left_panel' do
|
|
|
|
subject { service.left_panel }
|
|
|
|
|
2016-12-01 18:09:26 +01:00
|
|
|
it { is_expected.to eq 'layouts/left_panels/left_panel_'+controller.to_s.parameterize + '_' + method.to_s }
|
2016-11-22 15:17:37 +01:00
|
|
|
end
|
2016-12-01 12:19:22 +01:00
|
|
|
|
|
|
|
describe 'left_panel_exist?' do
|
|
|
|
pending
|
|
|
|
end
|
2016-11-22 16:30:35 +01:00
|
|
|
end
|