summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-27 11:15:29 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-27 11:15:29 +0200
commit2a0f83f534f46836127ebd556fa7d6096b168fe5 (patch)
treefc4ac803eb504211d2e40ef98e30bd9998e7046e /spec
parentc848735db6e77b7400ea88f9286bb12ff840a318 (diff)
downloadgitlab-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.rb19
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) }