temporary_model (rubygems): You can define a temporary class and use it in ActiveSupport::TestCase.
Keywords: activerecord|minitest|rails|rubygem