For those of you who happen to also use ruby, and particularly rspec,
I've been playing with a clone of rspec in javascript :)
I suck at naming stuff, so it's called js-spec, and depends on Proto 1.6.

http://code.google.com/p/js-spec/

For now the functionality is very basic (1 day of coding), but includes:
- several matchers, like something.should(equal(expected)),
something.should(have(3, "items")) or
something.shouldNot(respondTo("someMessage"))
- all classes created via Class.create automatically gain 'should' and
'shouldNot' as instance methods (Function.wrap FTW!)
- very very basic runner (console.log for all test output x__x)
- filters (before all, before each, after each and after all)
- it's easy to define and register your own matchers

To Do:
- code an HTML report :)
- test in something else than firefox
- add more matchers, particularly stuff for DOM testing
- redefine the internal API a bit so it's easier to hook add stuff and
a bit more DRY
- write specs for the actual library :)

Feedback is much appreciated ;-)

Best,
-Nicolas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to