Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tweaking README

  • Loading branch information...
commit 8c67cf4cd5614bbf0bc24a440592224429a49549 1 parent a8e0750
Larry Karnowski authored

Showing 1 changed file with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. +9 4 README.markdown
13 README.markdown
Source Rendered
... ... @@ -1,7 +1,12 @@
1   -JavaScript Testing
2   -==================
  1 +JavaScript Testing Rails Plugin
  2 +===============================
3 3
4   -The JavaScript Testing Rails Plugin adds support for command-line and in-browser JavaScript unit testing to your Rails app by bundling several great tools together like Rhino, env.js, Screw.Unit, and Smoke. Write your JavaScript code in a behaviour-driven development in an opinionated, convention-over-configuration Rails-like way, just like you write your Ruby code.
  4 +The JavaScript Testing Rails Plugin adds support for command-line and in-browser JavaScript unit tests to your Rails app. It bundles several great tools together in a convention-over-configuration, Rails-like way. These tools include:
  5 +
  6 +* `Rhino` - a Java-based JavaScript interpreter
  7 +* `Screw.Unit` - a behaviour-driven development syntax for JavaScript similar to RSpec
  8 +* `Smoke` - a JavaScript mocking & stubbing library similar to Mocha
  9 +* `env.js` - a DOM implementation written entirely in JavaScript
5 10
6 11 Installing and Running
7 12 ----------------------
@@ -166,7 +171,7 @@ Smoke is a JavaScript mocking and stubbing toolkit that is somewhat similar to F
166 171
167 172 Tips & Tricks
168 173 -------------
169   -* Avoid using `print` in your tests while debugging. It works fine from the command line but causes lots of headaches in browser. (Just imagine a print dialog opening ten or fifteen times and then Firefox crashing. This is a mistake I've make too many times! Trust me!)
  174 +* Avoid using `print` in your tests while debugging. It works fine from the command line but causes lots of headaches in browser. (Just imagine a print dialog opening ten or fifteen times and then Firefox crashing. This is a mistake I've made too many times! Trust me!)
170 175 * We don't recommend testing jQuery or Prototype, especially event wiring. (You don't test Rails, do you?) Instead write a separate function, test it, and wire it to events using jQuery or Prototype.
171 176
172 177 Caveats

0 comments on commit 8c67cf4

Please sign in to comment.
Something went wrong with that request. Please try again.