21 lines
513 B
Ruby
21 lines
513 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe EnableSearchSettingsHelper do
|
|
describe '#enable_search_settings' do
|
|
def before_content
|
|
helper.content_for(:before_content)
|
|
end
|
|
|
|
it 'sets content for before_content' do
|
|
expect(before_content).to be_nil
|
|
|
|
locals = { container_class: 'test-container-class' }
|
|
|
|
helper.enable_search_settings(locals: locals)
|
|
|
|
expect(before_content).to eql(helper.render("shared/search_settings", locals))
|
|
end
|
|
end
|
|
end
|