Skip to content

Commit

Permalink
Make middleware serve empty response for /testem.js
Browse files Browse the repository at this point in the history
See #90
  • Loading branch information
rwz committed Feb 22, 2015
1 parent caaf154 commit 256314a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ember-cli/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ def call(env)
enable_ember_cli
EmberCLI.wait!

@app.call(env)
if env["PATH_INFO"] == "/testem.js"
[ 200, { "Content-Type" => "text/javascript" }, [""] ]
else
@app.call(env)
end
end

private
Expand Down

0 comments on commit 256314a

Please sign in to comment.