14 lines
429 B
Ruby
14 lines
429 B
Ruby
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 |