debian-mirror-gitlab/spec/features/groups/labels/create_spec.rb

24 lines
529 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-06-23 00:09:42 +05:30
RSpec.describe 'Create a group label' do
2019-07-07 11:18:12 +05:30
let(:user) { create(:user) }
let(:group) { create(:group) }
before do
group.add_owner(user)
sign_in(user)
visit group_labels_path(group)
end
it 'creates a new label' do
click_link 'New label'
fill_in 'Title', with: 'test-label'
click_button 'Create label'
expect(page).to have_content 'test-label'
2022-05-07 20:08:51 +05:30
expect(page).to have_current_path(group_labels_path(group), ignore_query: true)
2019-07-07 11:18:12 +05:30
end
end