Seeds: Fix some rubocop offenses

This commit is contained in:
Sebastian Serth
2021-03-17 11:18:19 +01:00
parent 54d93a82a5
commit 076812b2e7
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# consumers # consumers
FactoryBot.create(:consumer) FactoryBot.create(:consumer)
FactoryBot.create(:consumer, name: 'openSAP') FactoryBot.create(:consumer, name: 'openSAP')

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'seeds_helper' require 'seeds_helper'
def create_seed_file(exercise, path, file_attributes = {}) def create_seed_file(exercise, path, file_attributes = {})
@ -53,9 +55,7 @@ FactoryBot.define do
after(:create) do |exercise, evaluator| after(:create) do |exercise, evaluator|
create_list(:user_exercise_feedback, evaluator.user_feedbacks_count, exercise: exercise) create_list(:user_exercise_feedback, evaluator.user_feedbacks_count, exercise: exercise)
end end
end end
end end
factory :even_odd, class: 'Exercise' do factory :even_odd, class: 'Exercise' do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :admin, class: 'InternalUser' do factory :admin, class: 'InternalUser' do
activated_user activated_user