Skip to content

Instantly share code, notes, and snippets.

@danielevans
Created November 26, 2012 18:19
Show Gist options
  • Save danielevans/4149751 to your computer and use it in GitHub Desktop.
Save danielevans/4149751 to your computer and use it in GitHub Desktop.
Adding a javascript stub file to cucumber
<% if Rails.env.test? %>
<%= javascript_include_tag "stubs" %>
<% end %>
It is essential that you REMOVE the "require_tree ." from application.js and replace it with individual or tree includes that won't include stubs.js
Application.some_ajax_function = $.noop;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment