FIX: Editing a title would not clear it out on your next edit.

This commit is contained in:
Robin Ward
2013-07-05 13:01:51 -04:00
parent 11bb9aafc7
commit d1a0b5dd44
2 changed files with 36 additions and 12 deletions

View File

@ -159,3 +159,20 @@ asyncTest('importQuote with no post', function() {
});
});
test('clearState', function() {
var composer = Discourse.Composer.create({
originalText: 'asdf',
reply: 'asdf2',
post: Discourse.Post.create({id: 1}),
title: 'wat'
});
composer.clearState();
blank(composer.get('originalText'));
blank(composer.get('reply'));
blank(composer.get('post'));
blank(composer.get('title'));
});