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!)
This commit is contained in:
Robin Ward 2021-07-21 12:35:56 -04:00
parent 8a470e508e
commit 78ab3f37b8

View File

@ -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