lib/meibo/factory_bot/classroom.rb in meibo-0.16.0 vs lib/meibo/factory_bot/classroom.rb in meibo-0.17.0

- old
+ new

@@ -1,21 +1,21 @@ # frozen_string_literal: true -require 'factory_bot' -require 'securerandom' +require "factory_bot" +require "securerandom" FactoryBot.define do - factory :meibo_classroom, class: 'Meibo::Classroom' do + factory :meibo_classroom, class: "Meibo::Classroom" do initialize_with { new(**attributes) } transient do course { nil } school { nil } terms { [] } end sourced_id { SecureRandom.uuid } - sequence(:title) {|n| "#{n}組" } + sequence(:title) { |n| "#{n}組" } course_sourced_id { course&.sourced_id } class_type { Meibo::Classroom::TYPES[:homeroom] } school_sourced_id { school&.sourced_id } term_sourced_ids { terms.map(&:sourced_id) }