Updates new tag code and test spec for new tags.

This commit is contained in:
John Montgomery
2015-03-30 21:58:15 -04:00
parent f95f892491
commit c22acb81a8
3 changed files with 6 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ describe('Filters Controller', function() {
}));
it('creates a tag', function(){
scope._newTag = {name:'tagName'}
scope.createTag('tagName');
expect(user.tags).to.have.length(1);
expect(user.tags[0].name).to.eql('tagName');