Add more specs.
This commit is contained in:
parent
1039218589
commit
b9b64d9e2d
3 changed files with 13 additions and 0 deletions
|
@ -32,6 +32,19 @@ describe TimeCost::AuthorList do
|
||||||
end
|
end
|
||||||
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
|
describe '.alias' do
|
||||||
it "must accept aliases for authors" do
|
it "must accept aliases for authors" do
|
||||||
assert_respond_to list, :alias
|
assert_respond_to list, :alias
|
||||||
|
|
0
spec/range_list_spec.rb
Normal file
0
spec/range_list_spec.rb
Normal file
0
spec/range_spec.rb
Normal file
0
spec/range_spec.rb
Normal file
Loading…
Reference in a new issue