Skip to content

Commit

Permalink
fixup! Readd admin tab to retired documents
Browse files Browse the repository at this point in the history
  • Loading branch information
1pretz1 committed Jul 18, 2023
1 parent b018b7c commit c551cad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/unit/tabs_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,5 @@ class TabsHelperTest < ActionView::TestCase
user = FactoryBot.create(:user, :welsh_editor)
assert_equal %w[admin unpublish], (tabs - tabs_for(user, guide)).map(&:name)
end

should "exclude `admin` tab if document retired" do
retired_document = FactoryBot.create(:campaign_edition)
user = FactoryBot.create(:user, :govuk_editor)
assert_equal %w[admin], (tabs - tabs_for(user, retired_document)).map(&:name)
end
end
end

0 comments on commit c551cad

Please sign in to comment.