Skip to content

Commit 83089d0

Browse files
Fix spurious test failures in PhantomJS.
1 parent 27e05e3 commit 83089d0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/unit/views/layout.erb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,6 @@
100100
</div>
101101

102102
<script type="text/javascript">
103-
Test.setup();
104-
if (window.mochaPhantomJS) {
105-
mochaPhantomJS.run();
106-
} else {
107-
var runner = mocha.run();
108-
}
109-
110-
Test.configureRunner(runner);
111-
112103
mocha.suite.suites.each(function (suite) {
113104
suite.beforeAll(function () {
114105
Test.startSuite(suite.name);
@@ -118,6 +109,15 @@
118109
Test.endSuite(suite.name);
119110
});
120111
});
112+
113+
Test.setup();
114+
if (window.mochaPhantomJS) {
115+
mochaPhantomJS.run();
116+
} else {
117+
var runner = mocha.run();
118+
}
119+
120+
Test.configureRunner(runner);
121121
</script>
122122

123123
<script type="text/javascript">

0 commit comments

Comments
 (0)