diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-27 11:15:29 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-27 11:15:29 +0200 |
commit | 2a0f83f534f46836127ebd556fa7d6096b168fe5 (patch) | |
tree | fc4ac803eb504211d2e40ef98e30bd9998e7046e /spec | |
parent | c848735db6e77b7400ea88f9286bb12ff840a318 (diff) | |
download | gitlab-ce-2a0f83f534f46836127ebd556fa7d6096b168fe5.tar.gz |
Fix environment folder route when special chars present
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/environments/environment_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/projects/environments/environment_spec.rb b/spec/features/projects/environments/environment_spec.rb index e2d16e0830a..acc3efe04e6 100644 --- a/spec/features/projects/environments/environment_spec.rb +++ b/spec/features/projects/environments/environment_spec.rb @@ -166,6 +166,25 @@ feature 'Environment', :feature do end end + feature 'environment folders', :js do + context 'when folder name contains special charaters' do + before do + create(:environment, project: project, + name: 'staging-1.0/review', + state: :available) + + visit folder_namespace_project_environments_path(project.namespace, + project, + id: 'staging-1.0') + end + + it 'renders a correct environment folder' do + expect(page).to have_http_status(:ok) + expect(page).to have_content('Environments / staging-1.0') + end + end + end + feature 'auto-close environment when branch is deleted' do given(:project) { create(:project) } |