From b9b64d9e2d1fdad356d8626665c00cfc57e41c6f Mon Sep 17 00:00:00 2001 From: "@@@No user configured@@@" <@@@No user configured@@@> Date: Fri, 26 Sep 2014 08:35:26 +0200 Subject: [PATCH] Add more specs. --- spec/author_list_spec.rb | 13 +++++++++++++ spec/range_list_spec.rb | 0 spec/range_spec.rb | 0 3 files changed, 13 insertions(+) create mode 100644 spec/range_list_spec.rb create mode 100644 spec/range_spec.rb 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