class TestData::TestLoadData::TestFileFormat

Public Instance Methods

setup() click to toggle source
# File test-unit-3.3.4/test/test-data.rb, line 359
def setup
  self.class.current_attribute(:data).clear
end
test_without_header(file_name) click to toggle source
# File test-unit-3.3.4/test/test-data.rb, line 409
def test_without_header(file_name)
  self.class.load_data(fixture_file_path(file_name))
  data_sets = Test::Unit::DataSets.new
  data_sets << {"empty string" => [true, ""]}
  data_sets << {"plain string" => [false, "hello"]}
  assert_equal(data_sets,
               self.class.current_attribute(:data)[:value])
end