                             Loader.shared.register(plugins: [FakeContainerPlugin.self, AnotherFakeContainerPlugin.self])
                             container = ContainerFactory.create(with: [:])
 
-                            container.load(Source.valid.rawValue)
+                            container.load(Source.valid)
 
                             expect(container.hasPlugin(FakeContainerPlugin.name)).to(beTrue())
                             expect(container.hasPlugin(AnotherFakeContainerPlugin.name)).to(beTrue())

    static let invalid = [kSourceUrl: Source.invalid]
}

enum Source: String {
    case valid = "http://clappr.com/video.mp4"
    case invalid = "invalid"
}

                    Loader.shared.resetPlugins()
                    Loader.shared.register(playbacks: [StubPlayback.self])
                    container = ContainerFactory.create(with: Resource.valid)
                    container.load(Source.valid)
                }

                it("reset startAt after first play event") {

                    let options = [kSourceUrl: "someUrl", kStartAt: 15.0] as Options
                    let container = ContainerFactory.create(with: options)
                    container.load(Source.invalid)

                    expect(container.options[kStartAt] as? TimeInterval) == 15.0
                    expect(container.playback?.startAt) == 15.0

                    container.playback?.play()
                    container.load(Source.valid)

                    expect(container.options[kStartAt] as? TimeInterval) == 0.0
                    expect(container.playback?.startAt) == 0.0
