spec/support/factories.rb in factory_bot-preload-0.2.2 vs spec/support/factories.rb in factory_bot-preload-0.3.0
- old
+ new
@@ -14,11 +14,16 @@
factory :preload do
name { "My Preload" }
end
+ factory :asset, class: "Models::Asset" do
+ name { "Some asset" }
+ end
+
preload do
factory(:john) { create(:user) }
factory(:ruby) { create(:skill, user: users(:john)) }
factory(:my) { create(:preload) }
+ factory(:asset) { create(:asset) }
end
end