gitlab-org--gitlab-foss/spec/helpers/enable_search_settings_helper_spec.rb

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