class TestData::TestLoadData

Public Instance Methods

test_invalid_csv_file_name() click to toggle source
# File test-unit-3.3.4/test/test-data.rb, line 350
def test_invalid_csv_file_name
  garbage = "X"
  file_name = "data.csv#{garbage}"
  assert_raise(ArgumentError, "unsupported file format: <#{file_name}>") do
    self.class.load_data(file_name)
  end
end