From 1f789e5f2b78eb72cdb32a2cbf2b1cb38abb33cc Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Wed, 1 Dec 2010 23:08:57 -0800 Subject: [PATCH] typeof regex implemented inconsistently across browsers...sigh --- spec/javascripts/validation-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/javascripts/validation-spec.js b/spec/javascripts/validation-spec.js index e896d0db5..ab1aa8931 100644 --- a/spec/javascripts/validation-spec.js +++ b/spec/javascripts/validation-spec.js @@ -3,7 +3,7 @@ describe("Validation", function() { describe("username", function() { describe("characters", function() { it("is the regex for checking if we allow what the user typed", function() { - expect(typeof Validation.rules.username.characters).toEqual("function"); + expect((typeof Validation.rules.username.characters.test === "function")).toBeTruthy(); }); }); });