Skip to content

Commit

Permalink
Fix tests for loading boolean values
Browse files Browse the repository at this point in the history
  • Loading branch information
maritz committed Mar 14, 2012
1 parent e9d6f78 commit f66a3e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/findTests.js
Expand Up @@ -175,7 +175,8 @@ exports.find = {
email: 'hurgelwurz@hurgel.de', email: 'hurgelwurz@hurgel.de',
json: { json: {
test: 1 test: 1
} },
bool: 'true'
}); });


user.save(function(err) { user.save(function(err) {
Expand All @@ -192,7 +193,7 @@ exports.find = {
t.equals(user.p('email'), findUser.p('email'), 'The loaded version of the email was not the same as a set one.'); t.equals(user.p('email'), findUser.p('email'), 'The loaded version of the email was not the same as a set one.');
t.equals(findUser.p('json').test, 1, 'The loaded version of the json was not the same as the set one.'); t.equals(findUser.p('json').test, 1, 'The loaded version of the json was not the same as the set one.');
t.equals(user.id, findUser.id, 'The loaded version of the email was not the same as a set one.'); t.equals(user.id, findUser.id, 'The loaded version of the email was not the same as a set one.');
t.equals(user.p('bool'), false, 'The loaded version of the boolean was not the same as a set one.'); t.equals(findUser.p('bool'), true, 'The loaded version of the boolean was not the same as a set one.');
t.done(); t.done();
}); });
}); });
Expand Down

0 comments on commit f66a3e0

Please sign in to comment.