test/ofac_test.rb in kevintyll-ofac-1.1.2 vs test/ofac_test.rb in kevintyll-ofac-1.1.3
- old
+ new
@@ -8,9 +8,11 @@
OfacSdnLoader.load_current_sdn_file #this method is mocked to load test files instead of the live files from the web.
end
should "give a score of 0 if no name is given" do
assert_equal 0, Ofac.new({:address => '123 somewhere'}).score
+ assert_equal 0, Ofac.new({:name => ''}).score
+ assert_equal 0, Ofac.new({:name => ' '}).score
end
should "give a score of 0 if there is no name match" do
assert_equal 0, Ofac.new({:name => 'Kevin'}).score
end