> assert_js_replace_html() works a lot like the ARTS assert_rjs() call, but > that > only uses JavaScript.
^W regular expressions. > I told my colleague to use the latter this week, and he > immediately discovered that a call like assert_rjs :replace_html, > 'skim_panel_cc', /\<select id=.ach_skim_selection/ could get fooled by an > 'ach_skim_selection' from the next Replace.element() call! Our Ajax is > delightfully complex, so we don't need this kind of noise at test time. Damaging typo! The point was assert_rjs() just builds a sloppy regexp out of its arguments and rips this, generally unaware of the JavaScript parsing rules. Unit tests can do better, _before_ the overhead of in-browser tests! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
