Sha256: e05ac9cf9ab26a8b017232665e88cb07acc2aff9d7be212a06cc8836d55b1059
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
require_relative '../../spec_helper.rb' describe Faker::Medical::Patient do it "should return a patient gender" do Faker::Medical::Patient.gender.should match(/^[M|F]$/) end it "should return 10 patient dates of birth" do 100.times do Faker::Medical::Patient.dob.should be_true end end it "should return basic phone number" do Faker::Medical::Patient.phone_number.should =~ /^[0-9]{3}-[0-9]{3}-[0-9]{4}$/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faker-medical-0.5.1 | spec/faker/medical/patient_spec.rb |