Files
aperonight/test/models/application_record_test.rb
2025-08-28 15:11:42 +02:00

14 lines
429 B
Ruby
Executable File

require "test_helper"
class ApplicationRecordTest < ActiveSupport::TestCase
# Test that ApplicationRecord is abstract
test "should be abstract class" do
assert ApplicationRecord.abstract_class?
end
# Test that ApplicationRecord inherits from ActiveRecord::Base
test "should inherit from ActiveRecord::Base" do
assert_kind_of Class, ApplicationRecord
assert ApplicationRecord < ActiveRecord::Base
end
end