require 'spec_helper' describe IcecastSecurity do let(:iobj) { IcecastSecurity.new } let(:output) { StringIO.new } =begin example output: 0 hotdog mongrel =end it "save" do iobj.changeowner_user ="hotdog" iobj.changeowner_group ="mongrel" iobj.save.should be_true iobj.dumpXml(1, output) end end