lib/meibo/factory_bot/organization.rb in meibo-0.8.0 vs lib/meibo/factory_bot/organization.rb in meibo-0.9.0
- old
+ new
@@ -41,7 +41,11 @@
trait :elementary_school do |factory|
type { Meibo::Organization::TYPES[:school] }
sequence(:name) {|n| "第#{n}小学校" }
school_type { 'B1' }
end
+
+ trait :jp do
+ initialize_with { Meibo::JapanProfile::Organization.new(**attributes) }
+ end
end
end