test/ofac_test.rb in kevintyll-ofac-1.1.7 vs test/ofac_test.rb in kevintyll-ofac-1.1.8
- old
+ new
@@ -18,9 +18,11 @@
assert_equal 0, Ofac.new({:name => 'P T'}).score
end
should "give a score of 0 if there is no name match" do
assert_equal 0, Ofac.new({:name => 'Kevin T P'}).score
+ assert_equal 0, Ofac.new({:name => "O'Brian"}).score
+ assert_equal 0, Ofac.new({:name => {:first_name => 'Matthew',:last_name => "O'Brian"}}).score
end
should "give a score of 0 if there is no name match but there is an address and city match" do
assert_equal 0, Ofac.new({:name => 'Kevin', :address => '123 somewhere ln', :city => 'Clearwater'}).score
end