spec/gitmodel/persistable_spec.rb in gitmodel-0.0.1 vs spec/gitmodel/persistable_spec.rb in gitmodel-0.0.2
- old
+ new
@@ -325,9 +325,14 @@
r = TestEntity.find_all
r.size.should == 3
end
+ it 'returns an empty array if there are no objects of the current type' do
+ r = TestEntity.find_all
+ r.should == []
+ end
+
end
describe '#exists?' do
it 'returns true if the record exists' do