Created
November 26, 2012 18:19
-
-
Save danielevans/4149751 to your computer and use it in GitHub Desktop.
Adding a javascript stub file to cucumber
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if Rails.env.test? %> | |
<%= javascript_include_tag "stubs" %> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application.some_ajax_function = $.noop; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment