Sha256: fe243b317363ba8fa6e4e5f8b2b464cb351c34e26ece9dad91f322cb4c6fb6ee
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
require 'pathname' module RSpec module Matchers def differ_from(expected) case expected when Pathname FileMatcher.new(expected) when Array ArrayMatcher.new(expected) when String FileMatcher.new(expected) else raise "DiffMatcher doesn't know how to match a #{expected.class}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activefacts-0.8.10 | spec/helpers/diff_matcher.rb |