Sha256: b876f137112604b8a5490253e06a0621a19e842d8c6a73a7b9c96c5ff1d7c726

Contents?: true

Size: 856 Bytes

Versions: 1

Compression:

Stored size: 856 Bytes

Contents

<!doctype html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>Mocha Tests</title>
    <%= stylesheet_link_tag "mocha" %>
    <%= javascript_include_tag "jquery", "mocha", "chai", "matcha/#{@mode}" %>
    <script>
      mocha.setup(<%= raw @interface.to_json %>);
      var expect = chai.expect,
          should = chai.should(),
          assert = chai.assert;
      window.onload = mocha.run;

      <% if @interface == :bdd %>
        beforeEach(function() {
          document.getElementById('test').innerHTML = "";
        });
      <% elsif @interface == :tdd %>
        setup(function() {
          document.getElementById('test').innerHTML = "";
        });
      <% end %>
    </script>
    <%= yield %>
  </head>
  <body>
    <div id="mocha"></div>
    <div id="test"></div>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
matcha-0.9.0 app/views/layouts/matcha/specs.html.erb