Merge pull request #4916 from hpetru/validate-poll-answer

I added the validation to poll question and poll answer

Conflicts:
	app/assets/javascripts/app/views/publisher_view.js
This commit is contained in:
Jonne Haß
2014-05-24 17:42:18 +02:00
11 changed files with 118 additions and 18 deletions

View File

@@ -51,4 +51,11 @@ describe('app.views.PublisherPollCreator', function(){
expect(this.view.$(remove_btn).hasClass('active')).toBe(false);
});
});
describe('#validateInput', function(){
it('should invalid blank value', function(){
var input = this.view.$('input');
input.val(' ');
expect(this.view.validateInput(input)).toBe(false);
}):
});
});