
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
h1. Automated jQuery tests with QUnit
h2. Installation
(sudo) gem install jodosha-hanoi -s http://gems.github.com
h2. Crash Course
hanoi # prepare the target directory rake test:js # run the tests
h2. How To Use
Prepare the target directory, you can use one of the following options:
hanoi hanoi . hanoi /path/to/project
You need a valid "Rake":http://rake.rubyforge.org/ installation to run your tests:
rake test:js
You can specify to run the test against one or more browsers:
rake test:js BROWSERS=firefox,ie,safari
You can specify to run only certain tests:
rake test:js TESTS=path/to/first_test.js,path/to/second_test.js
You can combine both @BROWSERS@ and @TESTS@ configurations.
h2. Structure
The @hanoi@ executable will create the following structure:
Rakefile test/ javascript/ assets/ jquery.js testrunner.js testsuite.css example_test.js fixtures/ example_fixtures.html templates/ test_case.erb
By convention, your @test/javascript@ folder should reflect the structure of your source directory, appending the @_test.js@ suffix to each test case and the @_fixtures.html@ to each fixture file.
Example:
src/ directory_a/ directory_b/ file_3.js file_2.js file_1.js test/ javascript/ directory_a/ directory_b/ file_3_test.js file_2_test.js file_1_test.js fixtures/ directory_a/ directory_b/ file_3_fixtures.html file_1_fixtures.html
You have probably noticed that @file_2_fixtures.html@ is missing, this because fixtures are optional.
h2. Browsers & Platforms
h3. Platforms:
h3. Browsers:
h2. Acknowledgements
The Ruby libraries of Hanoi are a customization of the jsblib.rb, courtesy of the "Prototype":http://prototypejs.org team.
Hanoi runs a customized version of QUnit, courtesy of the "jQuery":http://jquery.com team.
h2. Repository
git clone git://github.com/jodosha/hanoi.git
h2. Copyright
(c) 2009 Luca Guidi - "http://lucaguidi.com":http://lucaguidi.com, released under the MIT license
FAQs
Unknown package
We found that jodosha-hanoi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.