Files
aperonight/test/models/application_record_test.rb

15 lines
430 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