From 7b03c436d9615d231e5c10196b91643893a879b5 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 11 Jun 2023 16:24:05 +0200 Subject: [PATCH] Bump fabrication --- Gemfile.lock | 2 +- spec/factories.rb | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e5356af..3bc0098 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -52,7 +52,7 @@ GEM erubi (1.12.0) ethon (0.15.0) ffi (>= 1.15.0) - fabrication (2.29.0) + fabrication (2.30.0) faraday (2.7.6) faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) diff --git a/spec/factories.rb b/spec/factories.rb index bbba632..f3733fc 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -19,26 +19,26 @@ Fabricator(:user, class_name: Person) do end Fabricator(:post, class_name: Entity) do - on_init { init_with("Post") } + initialize_with { resolved_class.new("Post") } author { Fabricate(:person) } end Fabricator(:comment, class_name: Entity) do - on_init { init_with("Comment") } + initialize_with { resolved_class.new("Comment") } author { Fabricate(:person) } end Fabricator(:poll, class_name: Entity) do - on_init { init_with("Poll") } + initialize_with { resolved_class.new("Poll") } author { Fabricate(:person) } end Fabricator(:event, class_name: Entity) do - on_init { init_with("Event") } + initialize_with { resolved_class.new("Event") } author { Fabricate(:person) } end Fabricator(:conversation, class_name: Entity) do - on_init { init_with("Conversation") } + initialize_with { resolved_class.new("Conversation") } author { Fabricate(:person) } end