diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-22 08:24:08 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-23 10:59:50 +0200 |
commit | 5c83d3aff2401aa134ec1bf23013ba9e47109b48 (patch) | |
tree | dd483e165614a8aaf762db6fa5e8f93d487ea584 /spec/controllers/projects | |
parent | 2792695cfa357c5d269dc3218195c33f5bc15d0a (diff) | |
download | gitlab-ce-5c83d3aff2401aa134ec1bf23013ba9e47109b48.tar.gz |
Improve test wording
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r-- | spec/controllers/projects/environments_controller_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/controllers/projects/environments_controller_spec.rb b/spec/controllers/projects/environments_controller_spec.rb index 93dbedae2b2..20f99b209eb 100644 --- a/spec/controllers/projects/environments_controller_spec.rb +++ b/spec/controllers/projects/environments_controller_spec.rb @@ -1,25 +1,25 @@ require 'spec_helper' describe Projects::EnvironmentsController do - let(:user) { create(:user) } - let(:project) { create(:empty_project) } + set(:user) { create(:user) } + set(:project) { create(:empty_project) } - let(:environment) do + set(:environment) do create(:environment, name: 'production', project: project) end before do - project.team << [user, :master] + project.add_master(user) sign_in(user) end describe 'GET index' do - context 'when standardrequest has been made' do + context 'when a request for the HTML is made' do it 'responds with status code 200' do get :index, environment_params - expect(response).to be_ok + expect(response).to have_http_status(:ok) end end @@ -101,7 +101,7 @@ describe Projects::EnvironmentsController do end context 'when using JSON format' do - it 'responds with with a sorted JSON' do + it 'sorts the subfolders lexicographically' do get :folder, namespace_id: project.namespace, project_id: project, id: 'staging-1.0', |