                     expect(didCallWillDestroy).toEventually(beTrue())
                 }
 
-                it("Should trigger didDestroy") {
+                it("trigger didDestroy event") {
                     var didCallDidDestroy = false
 
                     core.on(InternalEvent.willDestroy.rawValue) { _ in


class CoreTests: QuickSpec {
    override func spec() {
        class StubPlayback: Playback {
            override var pluginName: String {
                return "stupPlayback"

                    expect(didCallDidDestroy).toEventually(beTrue())
                }

                it("remove listeners") {
                    var didTriggerEvent = false
                    let eventName = "teste"

                    core.listenTo(core, eventName: eventName) { _ in
                        didTriggerEvent = true
                    }

                    core.destroy()
                    core.trigger(eventName)

                    expect(didTriggerEvent).toEventually(beFalse())
                }

                it("remove all containers") {
                    var countOfDestroyedContainers = 0
                    core.containers.forEach { container in
                        container.on(InternalEvent.didDestroy.rawValue) { _ in
                            countOfDestroyedContainers += 1
                        }
                    }
                    let countOfContainers = core.containers.count

                    core.destroy()

                    expect(countOfContainers) == countOfDestroyedContainers
                }
            }

