debian-mirror-gitlab/spec/helpers/enable_search_settings_helper_spec.rb

22 lines
513 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# 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