Sha256: f518dc30ad5c1d7d24d90199a2859736dbb8b0d495f98a14fde6df296ff7fef6

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title>Netzke Testing</title>
  <%= csrf_meta_tag %>
  <%= load_netzke %>

  <% if params[:spec] %>
    <%= javascript_include_tag "/assets/netzke/testing/expect/expect.js" %>
    <%= javascript_include_tag "/assets/netzke/testing/mocha/mocha.js" %>
    <%= stylesheet_link_tag "/assets/netzke/testing/mocha/mocha.css" %>
    <script>
      mocha.setup('bdd');
      mocha.setup({ignoreLeaks: true, slow: 500, timeout: 5000});
      Ext.onReady(function(){
        Netzke.mochaRunner = mocha.run(function(){Netzke.mochaDone = true;});
      });
    </script>
    <% if !params["no-helpers"] %>
      <%= javascript_include_tag "/assets/netzke/testing/helpers/actions" %>
      <%= javascript_include_tag "/assets/netzke/testing/helpers/queries" %>
      <%= javascript_include_tag "/assets/netzke/testing/helpers/expectations" %>
      <%= javascript_include_tag "/assets/netzke/testing/helpers/grid" %>
      <%= javascript_include_tag "/assets/netzke/testing/helpers/form" %>
    <% end %>

    <% for path in Netzke::Testing.custom_js %>
      <%= javascript_include_tag path %>
    <% end %>

    <%= javascript_include_tag "/netzke/specs/#{params[:spec]}" %>
  <% end %>

</head>
<body>

<%= yield %>
<div id="mocha"></div>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netzke-testing-0.10.0 app/views/layouts/netzke/testing.html.erb
netzke-testing-0.10.0.rc1 app/views/layouts/netzke/testing.html.erb