Fix Rubocop offenses

This commit is contained in:
Sebastian Serth
2022-07-08 15:23:55 +02:00
parent ac453e841b
commit 5e9bf9141c
18 changed files with 87 additions and 87 deletions

View File

@ -46,7 +46,7 @@ describe ExecutionEnvironmentsController do
end
expect_assigns(execution_environment: ExecutionEnvironment)
expect_status(200)
expect_http_status(:ok)
expect_template(:new)
it 'does not register the execution environment with the runner management' do
@ -82,7 +82,7 @@ describe ExecutionEnvironmentsController do
expect_assigns(docker_images: Array)
expect_assigns(execution_environment: :execution_environment)
expect_status(200)
expect_http_status(:ok)
expect_template(:edit)
end
@ -98,7 +98,7 @@ describe ExecutionEnvironmentsController do
expect_assigns(execution_environment: :execution_environment)
expect_json
expect_status(200)
expect_http_status(:ok)
end
describe 'GET #index' do
@ -108,7 +108,7 @@ describe ExecutionEnvironmentsController do
end
expect_assigns(execution_environments: ExecutionEnvironment.all)
expect_status(200)
expect_http_status(:ok)
expect_template(:index)
end
@ -119,7 +119,7 @@ describe ExecutionEnvironmentsController do
expect_assigns(docker_images: Array)
expect_assigns(execution_environment: ExecutionEnvironment)
expect_status(200)
expect_http_status(:ok)
expect_template(:new)
end
@ -158,7 +158,7 @@ describe ExecutionEnvironmentsController do
before { get :shell, params: {id: execution_environment.id} }
expect_assigns(execution_environment: :execution_environment)
expect_status(200)
expect_http_status(:ok)
expect_template(:shell)
end
@ -166,7 +166,7 @@ describe ExecutionEnvironmentsController do
before { get :statistics, params: {id: execution_environment.id} }
expect_assigns(execution_environment: :execution_environment)
expect_status(200)
expect_http_status(:ok)
expect_template(:statistics)
end
@ -174,7 +174,7 @@ describe ExecutionEnvironmentsController do
before { get :show, params: {id: execution_environment.id} }
expect_assigns(execution_environment: :execution_environment)
expect_status(200)
expect_http_status(:ok)
expect_template(:show)
end
@ -206,7 +206,7 @@ describe ExecutionEnvironmentsController do
end
expect_assigns(execution_environment: ExecutionEnvironment)
expect_status(200)
expect_http_status(:ok)
expect_template(:edit)
it 'does not update the execution environment at the runner management' do