summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2017-05-18 11:36:00 +0000
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-05-19 08:18:10 +0200
commit2792695cfa357c5d269dc3218195c33f5bc15d0a (patch)
treecfb751045e9c2f2ed482ecfb9816d3d0cdfe6244 /spec
parent0385f9efc2a7844b0900958281296eb444b5070c (diff)
downloadgitlab-ce-2792695cfa357c5d269dc3218195c33f5bc15d0a.tar.gz
Make sorting difference clearer
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/projects/environments_controller_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/projects/environments_controller_spec.rb b/spec/controllers/projects/environments_controller_spec.rb
index e783c60452f..93dbedae2b2 100644
--- a/spec/controllers/projects/environments_controller_spec.rb
+++ b/spec/controllers/projects/environments_controller_spec.rb
@@ -85,7 +85,7 @@ describe Projects::EnvironmentsController do
name: 'staging-1.0/review',
state: :available)
create(:environment, project: project,
- name: 'staging-1.0/preview',
+ name: 'staging-1.0/zzz',
state: :available)
end
@@ -101,7 +101,7 @@ describe Projects::EnvironmentsController do
end
context 'when using JSON format' do
- it 'responds with JSON' do
+ it 'responds with with a sorted JSON' do
get :folder, namespace_id: project.namespace,
project_id: project,
id: 'staging-1.0',
@@ -110,9 +110,9 @@ describe Projects::EnvironmentsController do
expect(response).to be_ok
expect(response).not_to render_template 'folder'
expect(json_response['environments'][0])
- .to include('name' => 'staging-1.0/preview')
- expect(json_response['environments'][1])
.to include('name' => 'staging-1.0/review')
+ expect(json_response['environments'][1])
+ .to include('name' => 'staging-1.0/zzz')
end
end
end