app/views/teabag/spec/index.html.erb in teabag-0.5.0 vs app/views/teabag/spec/index.html.erb in teabag-0.5.1

- old
+ new

@@ -1,27 +1,28 @@ <!DOCTYPE> <html> <head> <title>Teabag :: Javascript Test Runner</title> - <%= stylesheet_link_tag_for_teabag *@suite.stylesheets %> - <%= csrf_meta_tags %> <meta name="viewport" content="width=device-width, user-scalable=no"> + <%= csrf_meta_tags %> + <%= stylesheet_link_tag_for_teabag *@suite.stylesheets %> <%= javascript_include_tag_for_teabag *@suite.core_javascripts %> <script type="text/javascript"> // pass relevant info to javascript Teabag.version = <%=raw Teabag::VERSION.inspect %>; Teabag.root = <%=raw Teabag.configuration.mount_at.inspect %>; Teabag.suites = <%=raw @suite.suites.to_json %>; - + </script> + <%= javascript_include_tag_for_teabag *@suite.spec_javascripts %> + <script type="text/javascript"> // start the execution of the specs (on onload, handling existing onload events) window.originalOnload = window.onload; window.onload = function() { if (Teabag.started) return; // ensure this never happens more than once if (window.originalOnload) window.originalOnload(); Teabag.execute(); } </script> - <%= javascript_include_tag_for_teabag *@suite.spec_javascripts %> </head> <body> </body> </html>