Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/projects/empty.html.haml_spec.rb')
-rw-r--r--spec/views/projects/empty.html.haml_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/views/projects/empty.html.haml_spec.rb b/spec/views/projects/empty.html.haml_spec.rb
index de83722160e..dd7b1bd94a9 100644
--- a/spec/views/projects/empty.html.haml_spec.rb
+++ b/spec/views/projects/empty.html.haml_spec.rb
@@ -36,6 +36,16 @@ RSpec.describe 'projects/empty' do
end
end
+ context 'project is archived' do
+ let(:project) { ProjectPresenter.new(create(:project, :empty_repo, :archived), current_user: user) }
+
+ it 'shows archived notice' do
+ render
+
+ expect(rendered).to have_content('Archived project!')
+ end
+ end
+
describe 'invite_members_empty_project_version_a experiment' do
let(:can_import_members) { true }