Nacho, I am new to jQuery and may not have a lot to offer, but does the second function actually fail or does it not run?
On 12/14/08, nachocab <[email protected]> wrote: > > Hi, > I have a test that passes if I run it by itself, but if I duplicate > the code and run both of them, the second one fails. What am I doing > wrong? > > __test.js___________________________________ > test("bind div", function() { > $("#my_div").click(); > ok( check_if_it_worked, "working") > }); > > test("bind div again", function() { > $("#my_div").click(); > ok( check_if_it_worked, "working") //Here it fails! > }); > > __app.js___________________________________ > $(document).ready(function() { > $("#my_div").click(function () { > do_something > }); > }); > > Thanks! > > Nacho -- Sent from Gmail for mobile | mobile.google.com

