Add more specs.

This commit is contained in:
@@@No user configured@@@ 2014-09-26 08:35:26 +02:00
parent 1039218589
commit b9b64d9e2d
3 changed files with 13 additions and 0 deletions

View file

@ -32,6 +32,19 @@ describe TimeCost::AuthorList do
end
end
describe '.size' do
it "must be zero in the beginning" do
assert_equal list.size, 0
end
it "must grow while adding authors" do
list.add first
assert_equal list.size, 1
list.add second
assert_equal list.size, 2
end
end
describe '.alias' do
it "must accept aliases for authors" do
assert_respond_to list, :alias

0
spec/range_list_spec.rb Normal file
View file

0
spec/range_spec.rb Normal file
View file