Sha256: 8d6628b91b9af7def0bd0e3e3ef0b2219f6f0e6b124a0d308f3aaae9a91ec099
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' describe Faker::Patient do it "should return a patient gender" do 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
faker-medical-0.5.0 | spec/lib/faker_patient_spec.rb |
faker-medical-0.4.0 | spec/lib/faker_patient_spec.rb |
faker-medical-0.1.3 | spec/lib/faker_patient_spec.rb |