Yet another bug/failing test #19

Closed
semmypurewal opened this Issue Oct 25, 2012 · 0 comments

1 participant

@semmypurewal

This test seems to fail:

    it("another bug?", function () {
        var Person,
    p, p1, p2, p3, p4;
        Person = new Model(function () {
            this.hasA("name").which.isA("string");
            this.hasMany("friends").eachOfWhich.validateWith(function (friend) {
                return friend instanceof Person;
            });
        });

        expect(function () {
            p = new Person("Semmy");
    }).not.toThrow();
    });
@semmypurewal semmypurewal added a commit that referenced this issue Oct 27, 2012
@semmypurewal throws an error when a constructor is called with more arguments than…
… specified by isBuiltWith, fixes issue #19
04869ee
@embeepea embeepea added a commit that referenced this issue Nov 12, 2012
@semmypurewal 04869ee... throws an error when a constructor is called with more arg…
…uments than specified by isBuiltWith, fixes issue #19
d8922ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment