jam-cloud/ruby/spec/jam_ruby/models/icecast_admin_authenticatio...

21 lines
376 B
Ruby

require 'spec_helper'
describe IcecastAdminAuthentication do
let(:admin) { IcecastAdminAuthentication.new }
before(:all) do
end
it "save" do
admin.save.should be_true
end
it "non-string password should be checked" do
admin.source_password = 1
admin.save.should be_false
admin.errors[:source_password].should == ['is not a string']
end
end