Sha256: dba3155d33685e18f043b219284377118b284b707fbd59f23b3a24cf2123534b
Contents?: true
Size: 486 Bytes
Versions: 6
Compression:
Stored size: 486 Bytes
Contents
require_relative "../cases/helper" class ErrorsTest < ActiveRecord::TestCase def test_can_be_instantiated_with_no_args base = ActiveRecord::ActiveRecordError error_klasses = ObjectSpace.each_object(Class).select { |klass| klass < base } error_klasses.each do |error_klass| begin error_klass.new.inspect rescue ArgumentError raise "Instance of #{error_klass} can't be initialized with no arguments" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems