Sha256: cae7b27da0d89f2769a438b2ddddf25ccf3ac6ebf4d67982481cee5ff171567d
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
if defined?(RSpec) describe "rspec matchers" do require_relative '../../lib/juxtapose/image_matcher' require_relative '../../lib/juxtapose/rspec' it "passes true if files are identical" do dog1 = File.join(File.dirname(__FILE__), "../files/dog1.jpg") dog2 = File.join(File.dirname(__FILE__), "../files/dog2.jpg") expect(dog1).to look_like(dog2) end it "passes with a fuzzy threshold" do dog1 = File.join(File.dirname(__FILE__), "../files/dog1.jpg") dog2 = File.join(File.dirname(__FILE__), "../files/dog_fuzzy.jpg") expect(dog1).to look_like(dog2, fuzz_factor: 78.0) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
motion-juxtapose-0.3.2 | spec/lib/rspec_matchers_spec.rb |
motion-juxtapose-0.3.1 | spec/lib/rspec_matchers_spec.rb |
motion-juxtapose-0.3.0 | spec/lib/rspec_matchers_spec.rb |