'use strict';

let assert = require('assert');
let Todo = require('../scripts/models/Todo.js');

describe('Todo', function() {

	describe('title', function() {
		it('should have a title "Empty todo" by default', function() {
			let todo = new Todo();
			assert.equal(todo.get('title'), 'Empty todo');
		});
	});

	describe('done', function() {
		it('should have a done "attribute" set to "false" by default', function() {
			let todo = new Todo();
			assert.equal(todo.get('done'), false);
		});
	});

});

@@ -484,23 +484,244 @@
 alse);%0A%09%09%7D);
+%0A%0A%09%09it('should invert the value of the %22done%22 attribute', function() %7B%0A%09%09%09let todo = new Todo();%0A%09%09%09todo.toggle();%0A%09%09%09assert.equal(todo.get('done'), true);%0A%09%09%09todo.toggle();%0A%09%09%09assert.equal(todo.get('done'), false);%0A%09%09%7D);
 %0A%09%7D);%0A%0A%7D);%0A

add tests todo done