 
     it 'returns the keys of an object', ->
       Z([{ a: 1, b: 2 }, {}, { x: 1 }]).omitEach('a').should.become [{ b: 2 }, {}, { x: 1 }]
+
+
+
+describe 'generic method', ->
+
+  describe 'toString', ->
+
+    it 'turns the value into a string', ->
+      Z(1).toString().should.become "1"
+


  describe 'split', ->

    it 'works', ->
      Z("jakob mattsson").split('a').should.become ["j", "kob m", "ttsson"]





  describe 'filter', ->

    it 'works given an array', ->
      arr = Z([{ a: 1 }, { a: 2 }, { a: 3 }])
      small = arr.filter (x) -> x.a <= 2
      small.should.become [{ a: 1 }, { a: 2 }]

    it 'fails given an object', ->
      Z({}).filter((x) -> x).should.be.rejected



