MPRIS version 1.0 service - should have a service name starting 'org.mpris' - should have an object at / - should have an object at /Player - should have an object at /TrackList - should implement the MediaPlayer interface on / - should implement the MediaPlayer interface on /Player - should implement the MediaPlayer interface on /TrackList MPRIS version 1.0 service root object - should implement a method called "Identity" - should implement a method called "Identity" that returns a string - should implement a method called "Quit" - should implement a method called "MprisVersion" - should implement a method called "MprisVersion" that returns two integers - should implement a method called "MprisVersion" that returns [1,0] MPRIS version 1.0 service /Player object - should implement a method called "Next" - should implement a method called "Prev" - should implement a method called "Pause" - should implement a method called "Stop" - should implement a method called "Play" - should implement a method called "Repeat" - should implement a method called "GetStatus" - should implement a method called "GetStatus" that returns four integers - should implement a method called "GetMetadata" - should implement a method called "GetCaps" - should implement a method called "GetCaps" that returns an integer - should implement a method called "VolumeSet" - should implement a method called "VolumeGet" - should implement a method called "VolumeGet" that returns an integer - should implement a method called "PositionSet" - should implement a method called "PositionGet" - should implement a method called "PositionGet" that returns an integer MPRIS version 1.0 service /TrackList object - should implement a method called "GetMetadata" - should implement a method called "GetCurrentTrack" - should implement a method called "GetCurrentTrack" that returns an integer - should implement a method called "GetLength" - should implement a method called "GetLength" that returns an integer - should implement a method called "AddTrack" - should implement a method called "DelTrack" - should implement a method called "SetLoop" - should implement a method called "SetRandom" MPRIS version 1.0 service when adding a track to the TrackList - should return 0 to indicate success (FAILED - 1) - should increment the tracklist length by one - should cause the state to change to Playing (when immediate is set) - should not change the state (when immediate is not set) MPRIS version 1.0 service starting/stopping/pausing playback - should change state to playing when calling Play method - should restart playback when calling Play method twice - should change state to Stopped when calling Stop method - should change state to Paused when calling Pause method - should change state to Playing when calling Pause method twice MPRIS version 1.0 service when changing track - should decrement the current track counter when going previous - should increment the current track counter when going next MPRIS version 1.0 service when getting the current track's metadata - should define a method called GetMetadata that returns a dictionary - should define a method called GetMetadata that returns a non-empty dictionary - should define 'location' in the dictionary returned by GetMetadata - should return a URL starting file:// in the 'location' field returned by GetMetadata MPRIS version 1.0 service when getting the metadata for a track on the tracklist - should define a method called GetMetadata that returns a dictionary - should define a method called GetMetadata that returns a non-empty dictionary - should define 'location' in the dictionary returned by GetMetadata - should return the URL of the file in the 'location' returned by GetMetadata MPRIS version 1.0 service when getting/setting repeat - should set 'repeat' item of status to 1, when repeat is enabled - should set 'repeat' item of status to 0, when repeat is disabled MPRIS version 1.0 service when getting/setting loop - should set 'loop' item of status to 1, when looping is enabled - should set 'loop' item of status to 0, when looping is disabled MPRIS version 1.0 service when getting/setting random - should set 'random' item of status to 1, when looping is enabled - should set 'random' item of status to 0, when looping is disabled MPRIS version 1.0 service when removing a track from the tracklist - should decrement the number of tracks on the tracklist when removing the first item (FAILED - 2) - should decrement the number of tracks on the tracklist when removing the last item (FAILED - 3) 1) 'MPRIS version 1.0 service when adding a track to the TrackList should return 0 to indicate success' FAILED expected: 0, got: nil (using ==) ./mpris_v10_spec.rb:330: 2) 'MPRIS version 1.0 service when removing a track from the tracklist should decrement the number of tracks on the tracklist when removing the first item' FAILED expected: 18, got: 19 (using ==) ./mpris_v10_spec.rb:554: 3) 'MPRIS version 1.0 service when removing a track from the tracklist should decrement the number of tracks on the tracklist when removing the last item' FAILED expected: 18, got: 19 (using ==) ./mpris_v10_spec.rb:560: Finished in 21.757419 seconds 66 examples, 3 failures