summaryrefslogtreecommitdiff
path: root/spec/helpers/enable_search_settings_helper_spec.rb
blob: c55c549ea51c858a09fa433c94cb6c417678e388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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