JavascriptEraser
Rack middleware to simulate what happens when a user disables Javascript. The purpose is to help with automated testing for unobtrusive Javascript.
Usage
In your Gemfile (preferably the test group):
gem 'javascript_eraser'
Then include the middleware in your stack. It should be towards the top. If you are using Rails, in your config/environments/test.rb file:
config.middleware.insert_before ActionDispatch::Static, JavascriptEraser
You may have to require the gem first.
Acknowledgement
All praise and thanks are due to Allah.
Copyright
Copyright © 2010 Tyler Boyd. See LICENSE for details.