                     
                     context("when stop is called") {
                         it("changes state to idle") {
-                            let playback = AVFoundationPlayback()
+                            let options = [kSourceUrl: "http://localhost:8080/sample.m3u8"]
+                            let playback = AVFoundationPlayback(options: options)
 
                             playback.play()
                             playback.stop()

                describe("#idle") {
                    context("when ready to play") {
                        it("current state must be idle") {
                            let playback = AVFoundationPlayback()
                            
                            expect(playback.currentState).to(equal(.idle))
                        }


                    context("when pause is called") {
                        it("changes current state to paused") {
                            let options = [kSourceUrl: "http://localhost:8080/sample.m3u8"]
                            let playback = AVFoundationPlayback(options: options)

                            playback.pause()
                            
                            expect(playback.isPaused).toEventually(beTrue(), timeout: 3)
                            expect(playback.isBuffering).to(beFalse())
                            expect(playback.isPlaying).to(beFalse())
                            expect(playback.currentState).to(equal(.paused))
                        }
                    }
