Thanks for the pointers. I love the BDD stuff and have pretty much stopped using Test::Unit for my Ruby stuff. I'm unclear how to integrate it into a test page. I put a pastie (http://pastie.caboo.se/ 120763) out that should explain my questions better, but fundamentally, my questions are:
- Does the BDD stuff go inside the Test.Unit.Runner arguments, as normal test cases do? - Is there something analogous to before/after blocks in rSpec (I know there is setup and teardown ... just wondered if there was more)? - Do you have a spec that you'd like to put someplace public so I can answer my own questions :-) Thanks, Steve On Nov 21, 2007, at 12:14 PM, Thomas Fuchs wrote: > > That message regards simulated DOM events, which just aren't possible > in all browsers; regardless of what unit testing framework you use > (some pending patches will expand the scope of this), so don't fear. > > We're currently working on expanding and streamlining the unit testing > framework used in Prototype, and it does some tricks already, like > automatic testing in all installed browsers. > > You may want to check out: > > http://prototypejs.org/contribute (scroll down to "the importance of > testing"). > > Plus my presentation on the framework: > > http://mir.aculo.us/2006/9/16/adventures-in-javascript-testing > > Best, > Thomas > > Am 21.11.2007 um 20:21 schrieb s.ross: > >> >> What are people using for testing Prototype/script.aculo.us code? >> I've been using jsUnit, and it does work, but I'd prefer to stay with >> the mainstream on this... I know Script.aculo.us has a unit test >> framework, but the only info I could find on it (http:// >> wiki.script.aculo.us/scriptaculous/show/UnitTesting) issues the >> caveat: >> >> "...some of the tests will fails in browsers other than Firefox..." >> >> One of the appealing parts of jsUnit is that I can run tests in >> Firefox, Safari and IE, verifying that things behave pretty much as I >> expect. What are others doing for tests? >> >> Thx >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
