A platform for community discussion. Free, open, simple.
DEV: Fix broken `request/qunit_controller_spec.rb` (#32376)
Alan Guo Xiang Tan2ec0bf32da6c
diff --git a/spec/requests/qunit_controller_spec.rb b/spec/requests/qunit_controller_spec.rbindex 99f0073a274..79960653f58 100644--- a/spec/requests/qunit_controller_spec.rb+++ b/spec/requests/qunit_controller_spec.rb@@ -10,6 +10,11 @@ RSpec.describe QunitController doRails.env.stubs(:production?).returns(true)end+ # rubocop:disable RSpec/BeforeAfterAll+ before(:all) { DiscourseJsProcessor::Transpiler.build_production_theme_transpiler }++ after(:all) { File.delete(DiscourseJsProcessor::Transpiler::TRANSPILER_PATH) }+it "hides page for regular users in production" doproduction_sign_in(Fabricate(:user))get "/theme-qunit"