From e34d2cfde48d18e66f6e675f1b950e10d28d6300 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Thu, 16 Nov 2023 12:22:08 -0600 Subject: [PATCH] DEV: Remove unnecessary fab! blocks (#24419) --- .../spec/system/post_small_action_spec.rb | 2 +- spec/system/post_small_action_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/discourse-local-dates/spec/system/post_small_action_spec.rb b/plugins/discourse-local-dates/spec/system/post_small_action_spec.rb index 32199b699c2..e49158b3866 100644 --- a/plugins/discourse-local-dates/spec/system/post_small_action_spec.rb +++ b/plugins/discourse-local-dates/spec/system/post_small_action_spec.rb @@ -2,7 +2,7 @@ describe "Post small actions", type: :system do fab!(:current_user) { Fabricate(:user) } - fab!(:topic) { Fabricate(:topic) } + fab!(:topic) fab!(:post) { Fabricate(:post, topic: topic) } let(:topic_page) { PageObjects::Pages::Topic.new } diff --git a/spec/system/post_small_action_spec.rb b/spec/system/post_small_action_spec.rb index df6f39f51fe..8409e53b635 100644 --- a/spec/system/post_small_action_spec.rb +++ b/spec/system/post_small_action_spec.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true describe "Post small actions", type: :system do - fab!(:admin) { Fabricate(:admin) } - fab!(:topic) { Fabricate(:topic) } + fab!(:admin) + fab!(:topic) fab!(:first_post) do Fabricate(:post, topic: topic, raw: "This is a special post with special stuff") end