Version 1.0.1 includes configurable connectors

1 view
Skip to first unread message

Choan Gálvez

unread,
Oct 31, 2008, 12:09:32 PM10/31/08
to jsho...@googlegroups.com
Hi all.

New in jShoulda 1.0.1: configurable connector.

While working with jShoulda I found myself wanting to write tests with
Spanish names. The 'should' connector makes them look quite funny so,
here is a new feature. Welcome `should.connector`.

should.connector = 'debería'
context("Un contexto", {},
should("tener un test", function() {
this.assert('Moooola');
})
)();

In addition... you can always use an empty connector if you prefer
using assertive testnames. I've found quite convenient to alias
`should` as `does` to avoid nonsensic code.

should.connector = '';
var does = should;
context("A context", {},
does("has a test", function() {
this.assert('Cool!');
})
)();

Have a nice day.
--
Choan

Reply all
Reply to author
Forward
0 new messages