Created
May 16, 2009 11:25
-
-
Save kdwinter/112653 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#== spec/spec_mpd.rb | |
$:.unshift File.dirname(__FILE__) + '/..' | |
require 'lib/rbmpd/mpd' | |
describe RbMPD do | |
before :all do | |
@mpd = RbMPD::MPD.new 'localhost', 6600 | |
end | |
before :each do | |
# | |
end | |
it 'should create a new RbMPD::MPD object' do | |
@mpd.class.should == RbMPD::MPD | |
end | |
it 'should connect and disconnect to/from the server' do | |
@mpd.connect | |
@mpd.connected?.should be_true | |
@mpd.disconnect | |
@mpd.connected?.should_not be_true # .should be_false | |
end | |
after :each do | |
# | |
end | |
after :all do | |
@mpd = nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment