diff --git a/spec/author_list_spec.rb b/spec/author_list_spec.rb index 6c8d96e..20ad4f3 100644 --- a/spec/author_list_spec.rb +++ b/spec/author_list_spec.rb @@ -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 diff --git a/spec/range_list_spec.rb b/spec/range_list_spec.rb new file mode 100644 index 0000000..e69de29 diff --git a/spec/range_spec.rb b/spec/range_spec.rb new file mode 100644 index 0000000..e69de29