Commit 5bc19dec authored by Cagdas Gerede's avatar Cagdas Gerede

Remove newlines between context and it in addition to testing redirection for...

Remove newlines between context and it in addition to testing redirection for create action to import path
parent 5f2d45c9
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment