-
Notifications
You must be signed in to change notification settings - Fork 508
Running Tests and Contributing
redkoder edited this page Dec 13, 2011
·
5 revisions
The test suite for rails.js is written with the JavaScript test framework, QUnit, and served with a light-weight Sinatra application to build the test template and back-end responses.
To start contributing to jquery-ujs, you can follow these steps (assuming you have Ruby installed):
git clone git://github.com/rails/jquery-ujs.git jquery-ujs
cd jquery-ujs
bundle install
ruby test/server.rb
- Visit http://localhost:4567 in your browser.
- Click the version links at the top right of the page to run the test suite with the different supported versions of jQuery.
And now we're all on the same page. Here are some additional notes to keep in mind when developing your patch for jquery-ujs.
- The tests can be found in:
|~test
|~public
|~test
- Some tests ensure consistent behavior across the major browsers, meaning it is possible for tests to pass in Firefox, but fail in Internet Explorer. If possible, it helps if you can run the test suite in multiple browsers before submitting patches.