Sha256: 063fff60ab33e8e8be7e827a4ff91d54bd8bc4da95f8d84809b69da3cfb335f8
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
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 it "doesn't give false positives" do Dir['spec/test_photos/no_face/*'].each do |path| Findaface.has_face?(path).should be_false 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 if path == 'spec/test_photos/small_faces/small.jpg' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
findaface-0.0.4 | spec/findaface_spec.rb |