Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4621

Show
Ignore:
Timestamp:
07/25/06 11:03:52 (2 years ago)
Author:
madrobby
Message:

script.aculo.us: Add the assertMatch unit test assertion for asserts with RegExps [thx Ian Tyndall]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/scriptaculous/src/unittest.js

    r4620 r4621  
    305305  }, 
    306306  assertMatch: function(expected, actual) { 
    307     var message = arguments[2] || 'assertRegex'; 
     307    var message = arguments[2] || 'assertMatch'; 
    308308    var regex = new RegExp(expected); 
    309309    try { (regex.exec(actual)) ? this.pass() :