# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'admin/push_rules/_merge_request_approvals' do
  let(:application_setting) { build(:application_setting) }

  before do
    assign(:application_setting, application_setting)

    stub_licensed_features(admin_merge_request_approvers_rules: true)
  end

  it 'shows settings form', :aggregate_failures do
    render

    expect(rendered).to have_content(_('Merge request (MR) approvals'))
    expect(rendered).to have_content(_('Regulate approvals by authors/committers. Affects all projects.'))
  end
end
