From 3f70825a62aeb4df076d3d3c2a7d47b684140087 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 24 Oct 2023 18:57:58 +1100 Subject: [PATCH] FEATURE: default disable the plugin (#171) --- config/settings.yml | 2 +- spec/plugin_helper.rb | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 spec/plugin_helper.rb diff --git a/config/settings.yml b/config/settings.yml index 15fd037e..1be6a8bc 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -1,7 +1,7 @@ plugins: post_voting_enabled: client: true - default: true + default: false post_voting_undo_vote_action_window: default: 10 post_voting_comment_limit_per_post: diff --git a/spec/plugin_helper.rb b/spec/plugin_helper.rb new file mode 100644 index 00000000..9a873a14 --- /dev/null +++ b/spec/plugin_helper.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +RSpec.configure do |_| + # this is so that fabricators can fabricate + # since the creation of some models require + # the plugin to be turned on + SiteSetting.post_voting_enabled = true +end