test/enumerable.rb in ohm-2.0.0.alpha5 vs test/enumerable.rb in ohm-2.0.0.rc1

- old
+ new

@@ -10,18 +10,18 @@ jane = Contact.create(name: "Jane Doe") [john, jane] end - test "Set#count doesn't do each" do + test "Set#size doesn't do each" do set = Contact.all def set.each raise "Failed" end - assert_equal 2, set.count + assert_equal 2, set.size end test "Set#each as an Enumerator" do |john, jane| enum = Contact.all.each @@ -65,15 +65,15 @@ enum.each do |comment| assert comment == c1 || comment == c2 end end - test "List#count doesn't do each" do |post, c1, c2| + test "List#size doesn't do each" do |post, c1, c2| list = post.comments def list.each raise "Failed" end - assert_equal 2, list.count + assert_equal 2, list.size end end