Skip to content

Instantly share code, notes, and snippets.

@kdwinter
Created May 16, 2009 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdwinter/112653 to your computer and use it in GitHub Desktop.
Save kdwinter/112653 to your computer and use it in GitHub Desktop.
#== 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