mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
18 lines
443 B
Ruby
18 lines
443 B
Ruby
require 'spec_helper'
|
|
|
|
describe MPDClient::Queue do
|
|
|
|
subject { MPDClient::Queue.new }
|
|
|
|
let(:song1) { MPD::Song.new({ title: 'Back in Black', album: 'Back in Black', genre: 'Rock', date: '1980' }) }
|
|
|
|
let(:song2) { MPD::Song.new({ title: 'Highway to Hell', album: 'Highway to Hell', genre: 'Rock', date: '1979' }) }
|
|
|
|
before do
|
|
MPDClient.conn.stub(:queue).and_return([song1, song2])
|
|
end
|
|
|
|
its(:songs) { should have(2).items }
|
|
|
|
end
|