Sha256: 8db8c6a825c64a1759aab3efa174497451969e1c78d9c2d243c98df617fffdb3

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

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

  <% if params[:spec] %>
    <%= javascript_include_tag "netzke/testing/expect/expect.js" %>
    <%= javascript_include_tag "netzke/testing/mocha/mocha.js" %>
    <%= stylesheet_link_tag "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

3 entries across 3 versions & 1 rubygems

Version Path
netzke-testing-0.11.2 app/views/layouts/netzke/testing.html.erb
netzke-testing-0.11.1 app/views/layouts/netzke/testing.html.erb
netzke-testing-0.11.0 app/views/layouts/netzke/testing.html.erb