spec/lib/faker_patient_spec.rb in faker-medical-0.1.1 vs spec/lib/faker_patient_spec.rb in faker-medical-0.1.3
- old
+ new
@@ -1,11 +1,19 @@
require File.dirname(__FILE__) + '/../spec_helper.rb'
describe Faker::Patient do
it "should return a patient gender" do
- puts Faker::Patient.gender
Faker::Patient.gender.should match(/^[M|F]$/)
end
-
+ it "should return 10 patient dates of birth" do
+ 100.times do
+ Faker::Patient.dob.should be_true
+ end
+ end
+
+ it "should return basic phone number" do
+ Faker::Patient.phone_number.should =~ /^[0-9]{3}-[0-9]{3}-[0-9]{4}$/
+ end
+
end
\ No newline at end of file