spec/findaface_spec.rb in findaface-0.0.1 vs spec/findaface_spec.rb in findaface-0.0.2
- old
+ new
@@ -1,8 +1,9 @@
require_relative '../lib/findaface.rb'
describe Findaface, "has_face?" do
+
it "finds faces" do
Dir['spec/test_photos/has_face/*'].each do |path|
Findaface.has_face?(path).should be_true
end
end
@@ -19,9 +20,9 @@
end
end
it "returns false for photos with small faces" do
Dir['spec/test_photos/small_faces/*'].each do |path|
- Findaface.has_face?(path).should be_false
+ Findaface.has_face?(path).should be_false if path == 'spec/test_photos/small_faces/small.jpg'
end
end
end