FIX: refresh custom fields and removes dup fabricator (#190)
This commit is contained in:
parent
922ca15fc9
commit
56cf5a7dbd
|
@ -1,7 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
require_relative '../fabricators/solved_hook_fabricator.rb'
|
|
||||||
|
|
||||||
RSpec.describe "Managing Posts solved status" do
|
RSpec.describe "Managing Posts solved status" do
|
||||||
let(:topic) { Fabricate(:topic) }
|
let(:topic) { Fabricate(:topic) }
|
||||||
|
@ -51,6 +50,8 @@ RSpec.describe "Managing Posts solved status" do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
expect(p1.reload.custom_fields["is_accepted_answer"]).to eq("true")
|
expect(p1.reload.custom_fields["is_accepted_answer"]).to eq("true")
|
||||||
|
|
||||||
|
topic.reload
|
||||||
|
|
||||||
expect(topic.public_topic_timer.status_type)
|
expect(topic.public_topic_timer.status_type)
|
||||||
.to eq(TopicTimer.types[:silent_close])
|
.to eq(TopicTimer.types[:silent_close])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue