demarches-normaliennes/spec/services/render_partial_service_spec.rb

24 lines
598 B
Ruby
Raw Normal View History

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 }
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_panel/_left_panel_'+controller.to_s.parameterize + '_' + method.to_s }
2016-11-22 15:17:37 +01:00
end
describe 'left_panel_exist?' do
pending
end
end