lib/minitest/filesystem.rb in minitest-filesystem-0.0.1 vs lib/minitest/filesystem.rb in minitest-filesystem-0.1.0

- old
+ new

@@ -4,6 +4,14 @@ module MiniTest::Assertions def assert_contains_filesystem(dir, msg = nil, &block) matcher = MiniTest::FileSystem::Matcher.new(dir, &block) assert matcher.match_found?, msg || matcher.message end + + def filesystem(&block) + block + end +end + +module MiniTest::Expectations + infect_an_assertion :assert_contains_filesystem, :must_exist_within end