mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
workaround fabricator not working correctly
This commit is contained in:
parent
646ed87aba
commit
003df147a5
@ -181,5 +181,4 @@ Migration::TableDropper.delayed_drop(
|
||||
}
|
||||
)
|
||||
|
||||
STDERR.puts "Resetting Active Record Cache"
|
||||
Discourse.reset_active_record_cache
|
||||
|
@ -1,7 +1,16 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe TopicTimer, type: :model do
|
||||
let(:topic_timer) { Fabricate(:topic_timer) }
|
||||
let(:topic_timer) {
|
||||
# we should not need to do this but somehow
|
||||
# fabricator is failing here
|
||||
TopicTimer.create!(
|
||||
user_id: -1,
|
||||
topic: Fabricate(:topic),
|
||||
execute_at: 1.hour.from_now,
|
||||
status_type: TopicTimer.types[:close]
|
||||
)
|
||||
}
|
||||
let(:topic) { Fabricate(:topic) }
|
||||
let(:admin) { Fabricate(:admin) }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user