Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong assertions in state specs #15

Open
DaQuirm opened this issue Mar 3, 2014 · 0 comments
Open

Wrong assertions in state specs #15

DaQuirm opened this issue Mar 3, 2014 · 0 comments
Labels

Comments

@DaQuirm
Copy link
Owner

DaQuirm commented Mar 3, 2014

Throw assertions are written in an ambiguous way so compiler actually creates a wrapper function around method calls which renders the assertions useless, e.g.

-> participant.update_state().should.throw Error

becomes

function() {
        return participant.update_state().should["throw"](Error);
};

which is not quite what's expected 😕

@DaQuirm DaQuirm added the bug label Mar 3, 2014
TLena added a commit that referenced this issue Mar 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants