File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ class UnitTests < Sinatra::Application
11
11
set :root , PWD
12
12
set :public_folder , PWD . join ( 'static' )
13
13
14
+ # By default, the server is only reachable locally. We change this so that
15
+ # we can start the server on one machine and then run tests from another.
16
+ set :bind , '0.0.0.0'
17
+
14
18
PATH_TO_PROTOTYPE = PWD . join ( '..' , 'dist' , 'prototype.js' )
15
19
16
20
unless PATH_TO_PROTOTYPE . file?
@@ -19,7 +23,6 @@ class UnitTests < Sinatra::Application
19
23
20
24
PATH_TO_TEST_JS = PWD . join ( 'tests' )
21
25
22
-
23
26
SUITES = [ ]
24
27
25
28
PATH_TO_TEST_JS . each_entry do |e |
@@ -37,6 +40,10 @@ class UnitTests < Sinatra::Application
37
40
SUITES_WITH_VIEWS << basename
38
41
end
39
42
43
+ after do
44
+ headers ( 'X-UA-Compatible' => 'IE=edge' )
45
+ end
46
+
40
47
41
48
def self . get_or_post ( url , &block )
42
49
get ( url , &block )
You can’t perform that action at this time.
0 commit comments