Skip to content

Commit

Permalink
typeof regex implemented inconsistently across browsers...sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahmei committed Dec 2, 2010
1 parent c7b1fcc commit 1f789e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/javascripts/validation-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
});
Expand Down

0 comments on commit 1f789e5

Please sign in to comment.