FIX: refresh custom fields and removes dup fabricator (#190)

This commit is contained in:
Joffrey JAFFEUX 2022-02-23 10:57:32 +01:00 committed by GitHub
parent 922ca15fc9
commit 56cf5a7dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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])