Entity = require("../src/model/entity")

class A extends Entity
  constructor:->

class B extends Entity
  constructor:->

MyPlugin =
  extended: ->
    @include
      hello: ->
        console.log "Hello!"

it "Should add plugin only on target entities.", ->
  A.extend( MyPlugin )
  a = new A()
  b = new B()
  a.should.have.property("hello")
  b.should.not.have.property("hello")

