Sha256: 56463fe4178720d872d64c902f948212cd7095f33b27f44b00d457cec3d4e233

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 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" %>

<% @stylesheets.each do |css| -%>
  <%= stylesheet_link_tag css %>
<% end -%>

<% @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.1.0 app/views/jasmine/runner.html.erb
rails_sandbox_jasmine-0.0.3 app/views/jasmine/runner.html.erb