A platform for community discussion. Free, open, simple.
DEV: security restriction in dev mode broke tests
Sam Saffron984516fdc333
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rbindex 3eb1fb20c03..c5dcc9bd0d2 100644--- a/spec/rails_helper.rb+++ b/spec/rails_helper.rb@@ -78,6 +78,10 @@ SiteSetting.automatically_download_gravatars = falseSeedFu.seed+# we need this env var to ensure that we can impersonate in test+# this enable integration_helpers sign_in helper+ENV['DISCOURSE_DEV_ALLOW_ANON_TO_IMPERSONATE'] = '1'+module TestSetup# This is run before each test and before each before_all blockdef self.test_setup(x = nil)