       spyOn @Mod, "include"
       class Klass
       @Mod.extendAndInclude Klass
-      expect( @Mod.include ).toHaveBeenCalledWith Klass::+      expect( @Mod.include ).toHaveBeenCalledWith Klass::

      expect( @Mod ).toMatch
        foo: 123
        bar: 321
 
    it "calls extended callback if defined, passing the extended class", ->
      spy = jasmine.createSpy()
      @Mod.extend
        extended: spy
      expect( spy ).toHaveBeenCalledWith @Mod
 
    it "does not copy over 'extended' nor 'included' properties", ->
      @Mod.extend
        extended: ->

    delete @Mod

  describe "extend", ->

    it "copies over class methods", ->
      @Mod.extend
        foo: 123
