people_places_things 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/people_places_things.rb
CHANGED
data/spec/person_name_spec.rb
CHANGED
@@ -37,6 +37,14 @@ describe PersonName do
|
|
37
37
|
name.suffix.should == 'jr'
|
38
38
|
end
|
39
39
|
|
40
|
+
it "should not parse middle initial as suffix" do
|
41
|
+
name = PersonName.new "brown, james v"
|
42
|
+
name.first.should == 'james'
|
43
|
+
name.middle.should == 'v'
|
44
|
+
name.last.should == 'brown'
|
45
|
+
name.suffix.should == nil
|
46
|
+
end
|
47
|
+
|
40
48
|
it "should parse last suffix first middle" do
|
41
49
|
name = PersonName.new "peabody jr george f.", :last_first_middle
|
42
50
|
name.first.should == 'george'
|