Fix #1518 Can not edit tags in metadatas settings

This commit is contained in:
Nicolas Le Goff
2013-10-10 16:43:41 +02:00
committed by Romain Neutron
parent 0c8c175ab5
commit 6e59e7aae6
2 changed files with 9 additions and 1 deletions

View File

@@ -217,6 +217,14 @@ define([
it("should render as a DIV element", function() {
this.view.render().el.nodeName.should.equal("DIV");
});
it("should render an error message if provided tag is empty", function() {
var view = this.view.render();
view.$('input#tag').val("").blur();
assert.isTrue(view.$('input#tag').closest(".control-group").hasClass("error"));
});
});
describe("FieldError Views", function() {