spec/populator/random_spec.rb in populator-0.2.3 vs spec/populator/random_spec.rb in populator-0.2.4
- old
+ new
@@ -40,6 +40,10 @@
end
it "should generate 3 random sentences" do
Populator.sentences(3).split(/\. [A-Z]/).should have(3).records
end
+
+ it "should generate 3 random paragraphs" do
+ Populator.paragraphs(3).split(/\n\n/).should have(3).records
+ end
end