%= load_netzke(minified: false) %> <% if params[:spec] %> <%# dependencies %> <%= javascript_include_tag "netzke/testing/expect/expect.js" %> <%= javascript_include_tag "netzke/testing/mocha/mocha.js" %> <%= stylesheet_link_tag "netzke/testing/mocha/mocha.css" %> <%# mocha config %> <%# netzke-testing helpers %> <% if !params["no-helpers"] %> <%= javascript_include_tag "netzke/testing/helpers/actions" %> <%= javascript_include_tag "netzke/testing/helpers/queries" %> <%= javascript_include_tag "netzke/testing/helpers/expectations" %> <%= javascript_include_tag "netzke/testing/helpers/grid" %> <%= javascript_include_tag "netzke/testing/helpers/form" %> <% end %> <%# custom JS (e.g. additional helpers) %> <%= javascript_include_tag "netzke/testing" %> <%# actual spec %> <%= javascript_include_tag "/netzke/specs/#{params[:spec]}" %> <% end %>
<%= yield %>