This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
jshoulda /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Mar 05 17:42:37 -0800 2009 | |
| |
.gitmodules | Thu Oct 23 15:42:36 -0700 2008 | |
| |
History.txt | Tue Feb 24 12:25:22 -0800 2009 | |
| |
License.txt | Tue Oct 07 14:56:16 -0700 2008 | |
| |
README.mdown | Sun Mar 22 16:29:34 -0700 2009 | |
| |
Rakefile | Tue Feb 24 12:25:22 -0800 2009 | |
| |
config/ | Tue Oct 07 14:56:16 -0700 2008 | |
| |
jshoulda.tmbundle - 6f849c8 | Sun Feb 22 14:32:38 -0800 2009 | |
| |
jshoulda/ | Sun Nov 23 12:32:04 -0800 2008 | |
| |
lib/ | Sun Nov 09 09:35:54 -0800 2008 | |
| |
script/ | Tue Oct 07 14:56:16 -0700 2008 | |
| |
site/ | Sun Mar 22 16:29:34 -0700 2009 | |
| |
src/ | Tue Feb 24 12:22:16 -0800 2009 | |
| |
tasks/ | Sun Nov 23 12:32:04 -0800 2008 | |
| |
test/ | Tue Feb 24 12:22:16 -0800 2009 |
README.mdown
jShoulda
jShoulda is a wrapper for JsUnitTest which allows the developer to write Shoulda-like tests.
Please visit http://jshoulda.scriptia.net for more information.
Example
context('A context', {
setup: function() {
// do your setup
this.something = 1
},
teardown: function() {
// do your cleaning
}
},
should('run its setup function', function() {
this.assertEqual(1, this.something);
}),
context('which is an inner context', function() {
setup: function() {
this.something += 1;
}
},
should('run both setup functions', function() {
this.assertEqual(2, this.something);
})
)
)();
SugarTest
Note that since March, 2009 the author has abandoned work in jShoulda in favor of SugarTest, a new library wich uses an improved and richer syntax (and still works on top of JsUnitTest).
Author, license, source code
jShoulda has been created by Choan Gálvez and is freely distributable under the terms of a MIT-style license. The source code resides in a Git repository at github.








