Fix tag creation test

This commit is contained in:
Dušan Juretić
2014-01-13 23:20:33 -03:00
parent f7f9bb1131
commit 74495bb690

View File

@@ -13,7 +13,9 @@ describe('Filters Controller', function() {
it('creates a tag', function(){
scope.createTag('tagName');
expect(user.tags).to.eql([{name: 'tagName'}]);
expect(user.tags).to.have.length(1);
expect(user.tags[0].name).to.eql('tagName');
expect(user.tags[0]).to.have.property('id');
});
it('toggles tag filtering', function(){