Commit ec6908f1 authored by John Hope's avatar John Hope Committed by Olena Horal-Koretska

Use Rails helper for archived badges in admin settings

parent 7554937f
- if project.archived
%span.badge.badge-warning
= _('archived')
= gl_badge_tag _('archived'), variant: :warning
- if project.marked_for_deletion?
%span.badge.badge-warning
= _('pending deletion')
= gl_badge_tag _('pending deletion'), variant: :warning
- elsif project.archived
%span.badge.badge-warning
= _('archived')
= gl_badge_tag _('archived'), variant: :warning
......@@ -40,7 +40,7 @@ RSpec.describe "Admin::Projects" do
expect(page).to have_content(project.name)
expect(page).to have_content(archived_project.name)
expect(page).to have_xpath("//span[@class='badge badge-warning']", text: 'archived')
expect(page).to have_xpath("//span[@class='gl-badge badge badge-pill badge-warning md']", text: 'archived')
end
it 'renders only archived projects', :js do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment