Sha256: 05c2fa4f69b8e957526f3d9881814971488674439ab9b7db7aa7a86ae78ae847
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 Bytes
Contents
require "bundler/setup" require "suvii" require "minitest/autorun" require "webmock/minitest" require "minitest/assert_dirs_equal" require "tmpdir" require "fileutils" WebMock.allow_net_connect! module AssertDirsEqual class Matcher def refute_extra_files_in_target return true unless @exact_match expected_files = both_paths_in(@expected, @target).map { |pair| pair[1] } actual_expected_files = Dir.glob(File.join(@target, "**/*")) diff = actual_expected_files - expected_files diff.empty? || fail_with("found unexpected files #{diff.inspect} when exepcted #{expected_files.inspect}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
suvii-0.1.0 | test/test_helper.rb |