From 56cf5a7dbdd982df1f24bdaad3123d9b051136ea Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 23 Feb 2022 10:57:32 +0100 Subject: [PATCH] FIX: refresh custom fields and removes dup fabricator (#190) --- spec/integration/solved_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/integration/solved_spec.rb b/spec/integration/solved_spec.rb index 1ed6394..4f8d68a 100644 --- a/spec/integration/solved_spec.rb +++ b/spec/integration/solved_spec.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'rails_helper' -require_relative '../fabricators/solved_hook_fabricator.rb' RSpec.describe "Managing Posts solved status" do let(:topic) { Fabricate(:topic) } @@ -51,6 +50,8 @@ RSpec.describe "Managing Posts solved status" do expect(response.status).to eq(200) expect(p1.reload.custom_fields["is_accepted_answer"]).to eq("true") + topic.reload + expect(topic.public_topic_timer.status_type) .to eq(TopicTimer.types[:silent_close])