2022-05-27 05:58:54 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-06-13 00:59:49 -04:00
|
|
|
Fabricator(:user_history) { acting_user { Fabricate(:user) } }
|
|
|
|
|
|
|
|
Fabricator(:site_setting_change_history, from: :user_history) do
|
|
|
|
action { UserHistory.actions[:change_site_setting] }
|
|
|
|
previous_value { "old value" }
|
|
|
|
new_value { "new value" }
|
|
|
|
subject { "some_site_setting" }
|
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:topic_closed_change_history, from: :user_history) do
|
|
|
|
action { UserHistory.actions[:topic_closed] }
|
|
|
|
subject { "some_site_setting" }
|
|
|
|
topic_id { Fabricate(:topic).id }
|
|
|
|
end
|