Return to Snippet

Revision: 31151
at August 31, 2010 03:38 by joshcarter


Updated Code
class Test::Unit::TestCase
  def canned_file(filename, format = :xml)
    File::read("test/data/#{filename}.#{format}")
  end
end

Revision: 31150
at August 31, 2010 03:37 by joshcarter


Initial Code
class Test::Unit::TestCase
  def canned_file(filename, format = :xml)
    File::read("test/data/#{filename}.#{format}")
  end
end

Initial URL

                                

Initial Description

                                

Initial Title
Read Canned Data File For Unit Test

Initial Tags

                                

Initial Language
Ruby