module Minitest::Assertions
Public Instance Methods
assert_contains_filesystem(dir, msg = nil, &block)
click to toggle source
# File lib/minitest/filesystem.rb, line 5 def assert_contains_filesystem(dir, msg = nil, &block) matcher = Minitest::Filesystem::Matcher.new(dir, &block) assert matcher.match_found?, msg || matcher.message end
assert_exists(path, msg = nil, &block)
click to toggle source
# File lib/minitest/filesystem.rb, line 10 def assert_exists(path, msg = nil, &block) assert File.exists?(path), msg || "expected `#{path}` to exist, but it doesn't" end
filesystem(&block)
click to toggle source
# File lib/minitest/filesystem.rb, line 18 def filesystem(&block) block end
refute_exists(path, msg = nil, &block)
click to toggle source
# File lib/minitest/filesystem.rb, line 14 def refute_exists(path, msg = nil, &block) refute File.exists?(path), msg || "expected `#{path}` not to exist, but it does" end