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

MockDelegateHelper does not allow to mock Booleans #37

Open
aalbericio opened this issue Feb 6, 2012 · 0 comments
Open

MockDelegateHelper does not allow to mock Booleans #37

aalbericio opened this issue Feb 6, 2012 · 0 comments

Comments

@aalbericio
Copy link

This line in MockDelegateHelper:

var mockData:Object = ( token.data ) ? token.data : new Object();

is blocking the creation of Boolean mock results.

If you execute something like: createMockResult(false) , that line will turn your "false" value into an Object and whatever result handlers you set for that Boolean result signature will fail to be called.

The fix is trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant