21 lines
334 B
Ruby
21 lines
334 B
Ruby
require 'spec_helper'
|
|
|
|
describe IcecastLimit do
|
|
|
|
let(:limit) { IcecastLimit.new }
|
|
|
|
before(:all) do
|
|
|
|
end
|
|
|
|
it "save" do
|
|
limit.save.should be_true
|
|
end
|
|
|
|
it "non-integer clients should be checked" do
|
|
limit.clients = "a"
|
|
limit.save.should be_false
|
|
limit.errors[:clients].should == ['is not a number']
|
|
end
|
|
end
|