FIX: Don't proxy `/qunit` URL when using Ember CLI

FIX: Don’t proxy /qunit URL when using Ember CLI

This is confusing because you’re running the tests on the older version of Ember. Use /tests for Ember CLI, and /qunit when using Rails’ asset pipeline (but only if REALLY necessary!)

diff --git a/app/controllers/qunit_controller.rb b/app/controllers/qunit_controller.rb
index 98f7d70..26a1160 100644
--- a/app/controllers/qunit_controller.rb
+++ b/app/controllers/qunit_controller.rb
@@ -10,6 +10,7 @@ class QunitController < ApplicationController
 
   # only used in test / dev
   def index
+    raise Discourse::NotFound.new if request.headers["HTTP_X_DISCOURSE_EMBER_CLI"] == "true"
     raise Discourse::InvalidAccess.new if Rails.env.production?
   end
 

GitHub sha: 78ab3f37b8a026c3aed62e31878b7c74eaa4e3d6

This commit appears in #13815 which was approved by romanrizzi and ZogStriP. It was merged by eviltrout.