"use strict";

var assert = require('assert');
var markov = require('./markov.js');

describe('Markov chain', function() {
    describe('building model', function() {
	it('should provide entries', function() {
	    var model = markov.buildModel([
		'the',
		'quick',
		'brown',
		'fox'
	    ]);

	    assert.equal(4, model.entryCount());
	});
    });
});

@@ -164,38 +164,42 @@
 ) %7B%0A
-%09it('should provide entries', 
+%0A%09var model = null;%0A%09%0A%09beforeEach(
 func
@@ -212,20 +212,16 @@
  %7B%0A%09    
-var 
 model = 
@@ -288,16 +288,64 @@
     %5D);%0A
+%09%7D);%0A%0A%09it('should provide entries', function() %7B
 %0A%09    as

refactor to before each