/*jshint expr: true*/
'use strict';
require('should');

describe('Baby', function(){

  var baby = require('../classes/baby.js');

  describe('when crying', function(){
    it('should execute callback passed for each cry', function(){
      baby.awake('cry1- cry2 -cry3');

      var expected_crys = [];

      baby.each_cry(function(crying) {
        expected_crys.push(crying);
      });

      expected_crys.should.have.lengthOf(3);
      expected_crys[0].should.be.exactly('cry1');
      expected_crys[1].should.be.exactly('cry2');
      expected_crys[2].should.be.exactly('cry3');
    });
  });
});

@@ -262,20 +262,25 @@
 y2 -cry3
+-cry4
 ');%0A
-
 %0A      v
@@ -430,17 +430,17 @@
 engthOf(
-3
+4
 );%0A     
@@ -457,19 +457,16 @@
 crys
-%5B0%5D
 .should.
 be.e
@@ -457,34 +457,31 @@
 crys.should.
-be.exactly
+include
 ('cry1');%0A  
@@ -501,19 +501,16 @@
 crys
-%5B1%5D
 .should.
 be.e
@@ -501,34 +501,31 @@
 crys.should.
-be.exactly
+include
 ('cry2');%0A  
@@ -545,19 +545,16 @@
 crys
-%5B2%5D
 .should.
 be.e
@@ -553,24 +553,65 @@
 uld.
-be.exactly
+include('cry3');%0A      expected_crys.should.include
 ('cry
-3
+4
 ');%0A

Refactor baby spec