debian-mirror-gitlab/spec/views/groups/settings/_general.html.haml_spec.rb
2023-06-20 00:43:36 +05:30

21 lines
532 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'groups/settings/_general.html.haml', feature_category: :subgroups do
describe 'Group Settings README' do
let_it_be(:group) { build_stubbed(:group) }
let_it_be(:user) { build_stubbed(:admin) }
before do
assign(:group, group)
allow(view).to receive(:current_user).and_return(user)
end
it 'renders #js-group-settings-readme' do
render
expect(rendered).to have_selector('#js-group-settings-readme')
end
end
end