class ToSTest

Public Instance Methods

test_to_s_db() click to toggle source
# File activesupport/test/core_ext/array/conversions_test.rb, line 81
def test_to_s_db
  collection = [TestDB.new, TestDB.new, TestDB.new]

  assert_equal "null", [].to_s(:db)
  assert_equal "1,2,3", collection.to_s(:db)
end