/ Published in: Ruby
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class Test::Unit::TestCase def canned_file(filename, format = :xml) File::read("test/data/#{filename}.#{format}") end end