I'm looking for a way to test methods that use File class with test_unit. It's really the same thing that issue with Rspec but how to make it work with test_unit.
def foo
File.open "filename", "w" do |file|
file.write("text")
end
end
What will the test be :
require 'test/unit'
def test_foo
...
end
Thanks for your help.