Apply automatic rubocop fixes

This commit is contained in:
Sebastian Serth
2021-05-14 10:51:44 +02:00
parent fe4000916c
commit 6cbecb5b39
440 changed files with 2705 additions and 1853 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper'
describe Admin::DashboardHelper do
@ -8,7 +10,7 @@ describe Admin::DashboardHelper do
end
describe '#docker_data' do
before(:each) { FactoryBot.create(:ruby) }
before { FactoryBot.create(:ruby) }
it 'contains an entry for every execution environment' do
expect(docker_data.length).to eq(ExecutionEnvironment.count)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper'
describe ApplicationHelper do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper'
describe ExerciseHelper do

View File

@ -5,7 +5,7 @@ require 'yaml'
describe 'yaml config files' do
Find.find(__dir__, 'config') do |path|
next unless path =~ /.*.\.yml/
next unless /.*.\.yml/.match?(path)
it "loads #{path} without syntax error" do
expect { YAML.load_file(path) }.not_to raise_error