Sha256: 001c61b64553b23e26de186e826ff7ccfdc826998c670214d8eeff38940a9011

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

<!doctype html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <title>Jasmine Spec Runner</title>
  <link rel="shortcut icon" type="image/png" href="<%= asset_path 'jasmine_favicon.png' %>" />
  <%= stylesheet_link_tag "jasmine" %>
  <%= javascript_include_tag "jasmine", "jasmine-html" %>

<% @tests.each do |test| -%>
  <%= javascript_include_tag test %>
<% end -%>

  <script type="text/javascript">
    (function() {
      var jasmineEnv = jasmine.getEnv();
      jasmineEnv.updateInterval = 1000;

      var htmlReporter = new jasmine.HtmlReporter();

      jasmineEnv.addReporter(htmlReporter);

      jasmineEnv.specFilter = function(spec) {
        return htmlReporter.specFilter(spec);
      };

      var currentWindowOnload = window.onload;

      window.onload = function() {
        if (currentWindowOnload) {
          currentWindowOnload();
        }
        execJasmine();
      };

      function execJasmine() {
        jasmineEnv.execute();
      }

    })();
  </script>
</head>

<body>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_sandbox_jasmine-0.0.2 app/views/jasmine/runner.html.erb
rails_sandbox_jasmine-0.0.1 app/views/jasmine/runner.html.erb