Commit fc061c2e authored by Michael Kozono's avatar Michael Kozono

Fix Rubocop failures

parent 03144e1c
class CreateRedirectRoutes < ActiveRecord::Migration
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
......
......@@ -144,13 +144,13 @@ describe GroupsController do
it 'does not 404' do
delete :destroy, id: group.to_param.upcase
expect(response).to_not have_http_status(404)
expect(response).not_to have_http_status(404)
end
it 'does not redirect to the correct casing' do
delete :destroy, id: group.to_param.upcase
expect(response).to_not redirect_to(group_path(group.to_param))
expect(response).not_to redirect_to(group_path(group.to_param))
end
end
......@@ -190,13 +190,13 @@ describe GroupsController do
it 'does not 404' do
post :update, id: group.to_param.upcase, group: { path: 'new_path' }
expect(response).to_not have_http_status(404)
expect(response).not_to have_http_status(404)
end
it 'does not redirect to the correct casing' do
post :update, id: group.to_param.upcase, group: { path: 'new_path' }
expect(response).to_not redirect_to(group_path(group.to_param))
expect(response).not_to redirect_to(group_path(group.to_param))
end
end
......
......@@ -68,7 +68,7 @@ describe 'Edit Project Settings', feature: true do
end
describe 'project features visibility pages' do
let(:tools) {
let(:tools) do
{
builds: namespace_project_pipelines_path(project.namespace, project),
issues: namespace_project_issues_path(project.namespace, project),
......@@ -76,7 +76,7 @@ describe 'Edit Project Settings', feature: true do
snippets: namespace_project_snippets_path(project.namespace, project),
merge_requests: namespace_project_merge_requests_path(project.namespace, project),
}
}
end
context 'normal user' do
before do
......
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