diff options
author | Cagdas Gerede <Earth@BlueSky> | 2016-11-15 21:23:20 +0300 |
---|---|---|
committer | Cagdas Gerede <Earth@BlueSky> | 2016-11-15 21:23:20 +0300 |
commit | 5bc19dec54643fe045b40206232fd93fbe4befb1 (patch) | |
tree | 77ee08bacf38ff4787b2be7606c9cb2c3dd73488 | |
parent | 5f2d45c956eba7e24f5f8572409230383b663bfe (diff) | |
download | gitlab-ce-5bc19dec54643fe045b40206232fd93fbe4befb1.tar.gz |
Remove newlines between context and it in addition to testing redirection for create action to import path
-rw-r--r-- | spec/controllers/projects/forks_controller_spec.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/controllers/projects/forks_controller_spec.rb b/spec/controllers/projects/forks_controller_spec.rb index ad1f4b849e5..028ea067a97 100644 --- a/spec/controllers/projects/forks_controller_spec.rb +++ b/spec/controllers/projects/forks_controller_spec.rb @@ -76,7 +76,6 @@ describe Projects::ForksController do end context 'when user is signed in' do - it 'responds with status 200' do sign_in(user) @@ -87,7 +86,6 @@ describe Projects::ForksController do end context 'when user is not signed in' do - it 'redirects to the sign-in page' do sign_out(user) @@ -107,20 +105,17 @@ describe Projects::ForksController do end context 'when user is signed in' do - it 'responds with status 302' do sign_in(user) post_create expect(response).to have_http_status(302) - expected_import_url = namespace_project_import_url(user.namespace, project) - expect(response.headers['Location']).to eq(expected_import_url) + expect(response).to redirect_to(namespace_project_import_path(user.namespace, project)) end end context 'when user is not signed in' do - it 'redirects to the sign-in page' do sign_out(user) |