44 lines
659 B
Ruby
44 lines
659 B
Ruby
require 'spec_helper'
|
|
|
|
describe IcecastMount do
|
|
|
|
let(:iobj) { IcecastMount.new }
|
|
|
|
before(:all) do
|
|
|
|
end
|
|
|
|
=begin
|
|
|
|
it "save" do
|
|
iobj.build_authentication
|
|
@ua = iobj.authentication
|
|
@ua.username ="testcase"
|
|
iobj.mount_name = "Dhdhjd<>&%&&s@#$% gg8io9 fdfdj"
|
|
iobj.save
|
|
#puts iobj.inspect
|
|
iobj.dumpXml
|
|
iobj.errors.any?.should be_false
|
|
|
|
end
|
|
|
|
|
|
|
|
it "save 2" do
|
|
iobj.build_authentication
|
|
@ua = iobj.authentication
|
|
@ua.stype =""
|
|
|
|
iobj.mount_name = "No auth 473873434"
|
|
iobj.save
|
|
#puts iobj.inspect
|
|
#puts iobj.errors.inspect
|
|
iobj.dumpXml
|
|
iobj.errors.any?.should be_false
|
|
end
|
|
=end
|
|
|
|
|
|
|
|
|
|
end |