32 lines
460 B
Ruby
32 lines
460 B
Ruby
require 'spec_helper'
|
|
|
|
describe IcecastUserAuthentication do
|
|
|
|
let(:iobj) { IcecastUserAuthentication.new }
|
|
|
|
before(:all) do
|
|
|
|
end
|
|
|
|
it "save" do
|
|
iobj.save
|
|
#puts iobj.inspect
|
|
iobj.dumpXml
|
|
iobj.errors.any?.should be_false
|
|
end
|
|
|
|
|
|
|
|
it "http autthenication" do
|
|
iobj.stype = 'htpasswd'
|
|
#puts limit.clients
|
|
#puts limit.inspect
|
|
iobj.filename ="/dfdfd</$%%%6566.auth"
|
|
iobj.save.should be_true
|
|
iobj.dumpXml
|
|
|
|
end
|
|
|
|
|
|
end
|